09-20-2007 06:12 PM
09-20-2007 11:26 PM
I am guessing the images in the AVI file are color, and you are trying to extract a grayscale array. Use the "IMAQ Color Image to Array" instead.
Also, when you convert grayscale images to arrays, make sure you pick the correct output. Very few images are represented using Floating point - most are U8 or I16.
Bruce
09-21-2007 10:38 AM
Hi Bruce,
Yes, that is exactly what it was. I wasn't aware the color image to array vi existed. I somehow assumed the double output contained the U32 data b/c the U32 output was not present.
Makes sense now.
Thanks
05-19-2008 11:06 PM
04-19-2012 11:54 AM
Hi all, this thread was useful for me...but i have another doubt... when I try to extract a single plane (Luminance, Saturation, R,G,B...anyone) and try to save it in jpg as gray image, it saves an image with blue tones. I have examinated it using Matlab and checked that Red plane has low values (but not zero), the same for G plane and high values for B plane. An image of the VI is attached.
Thanks in advance
04-20-2012 04:46 PM
Hi javijavi70,
What is your end goal for this application? If you are just trying to save an image in U8 grayscale you can cast your image to that type with the IMAQ Cast Image.
IMAQ Cast Image VI
http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_cast_image/
Tim O