LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ ColorHistograph - actually graph RGB information

Solved!
Go to solution

I have an RGB image and would like to actually see the distribution of Red, Green, and Blue in the image. 

I am trying to use the IMAQ ColorHistograph .vi, but the resulting XY graph doesn't seem to display anything.

I thought the IMAQ ColorHistograph .vi could be directly wired to the XY graph, but haven't had success with that.

Here is what I'm trying to use now:

 

 

Image

I am very new LabVIEW.  I appreciate any responses or suggestions.

0 Kudos
Message 1 of 3
(2,912 Views)
Solution
Accepted by topic author jmeyer33

Hi jmeyer33,

 

Unfortunately, you cannot wire the XY graph to the IMAQ ColorHistogrpah.vi. The output from the IMAQ ColorHistograph.vi are clusters that contain the color pixel values as well as the starting value and the interval value. You will have to first unbundle the outputs to pull out the histograph arrays that contains the pixel values. Furthermore, if you wish to display the data on a XY graph, you will also have to supply the values that go along the x-axis. I have posted 2 examples on the community to show how you can do this. The first shows how to display the histograph in a XY graph and the second displays it on a waveform graph. You can also find this examples by search for 'color histograph' in the community.

Message 2 of 3
(2,882 Views)

That's it!  Thanks.  Also thanks for the information about the Developer Zone community.

0 Kudos
Message 3 of 3
(2,877 Views)