Hi,
Thank you for posting on the NI forums! To get an array of color pixels, you need to use the
IMAQ ColorImageToArray.vi. That will output an array of U32 pixels. To get the individual colors, you can either do matrix manipulations and type casting, or use the
Color To RGB.vi which outputs the individual color values as U8 integers. I posted an example of this sort of thing
here. That VI is the reverse of what you want to do, so if you call the VIs in the opposite order, it should work for you. In the array manipulation example, once you have the U8 2D array, you can use index array to grab any one column, which will be all the pixel values for one color.
I hope this helps!