05-14-2010 05:20 AM
Hi all.
I acquired one image from my color camera. The data is in a 2D array of unsigned 24-bit data.
I want to get the R, G, and B data (corresponding to the 16-23, 8-15, 0-7 bit) in to three different images.
Is there LabVIEW function can perform this job?
Thanks a lot...
05-14-2010 05:27 AM
05-14-2010 06:11 AM
In Labview you have 8,16,and 32 bits data types but non 24 bit. So I guess your 2d array is U32 data type. You can mask any color using logical and functions in the Boolean function palette. if you want to only keep the information in bit 16 to 23 you "and" every number in the array with 0x0F00, bit 8 to 15 you "and" with 0x00F0, and so on.
05-14-2010 06:17 AM
05-19-2010 04:17 AM
thanks a lot for the help, guys,
I used color to rgb to solve this issue.
attached is the picture showing my LV code (for the reference of those who might need it in the future)...