취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

convert the color image to array

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.

 

Johnson1213_0-1647942103501.png

 

0 포인트
1/6 메시지
3,008 조회수

@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.

 

Johnson1213_0-1647942103501.png

 


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.

0 포인트
2/6 메시지
2,992 조회수

Input color image, the U64 is null, NI can provide the example about colorimage to array? 

Johnson1213_0-1647963508896.png

 

0 포인트
3/6 메시지
2,965 조회수

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).

0 포인트
4/6 메시지
2,962 조회수

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.

0 포인트
5/6 메시지
2,960 조회수
0 포인트
6/6 메시지
2,953 조회수