From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-22-2022 04:57 AM
HI , I want to convert the color image to array, but was unsuccessful, the output U64 data is null.
Can you provide the example to me ?
I also searched this function example which does not exist in the LabVIEW examples.
03-22-2022 07:32 AM - edited 03-22-2022 07:33 AM
@Johnson1213 wrote:
HI , I want to convert the color image to array, but was unsuccessful, the output U64 data is null.
Can you provide the example to me ?
I also searched this function example which does not exist in the LabVIEW examples.
How about the Image Pixels (U32)?
Also, check the error out... This VI probably works for color images only, if you insert a grayscale image, you need to use the grayscale variant.
03-22-2022 10:39 AM
Input color image, the U64 is null, NI can provide the example about colorimage to array?
03-22-2022 11:03 AM
The U64 2D array is empty (not null), because the image doesn't have U64 pixel values.
See the info of the image mentioning it's a 32-bit image...
If each pixel is RGB, it's 8+8+8 bits, and the array of 32 bit values is used to return the pixels.
Set the 2D array of 32 bit integers to hex, and you'll see the numbers represent RRGGBB (or BBGGRR).
03-22-2022 11:05 AM
You could use Color To RGB.vi (use quick drop) to convert the numbers from I32 to RGB.
Maybe B and R are reverted... That happens.
03-22-2022 12:12 PM
We're having the same discussion over here: