LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Histogram of u16 image

Hello!

 

I am trying to use the gray level intensities of u16 images. However, the functions histogram or light meter do not work with this image type. Does anybody know how I can solve this problem? I cannot convert the images to u8, because I may not loose data.

 

Thanks in advance!

0 Kudos
Message 1 of 9
(3,421 Views)

Dear Gurdie,

 

thank you so much for your post on our webforum. Which version of the Vision Development Module are you using? I noticed that with the version I have (2009) the IMAQ histogram function supports U16 pictures. I came across some documentation that this was different in the past.

 

Best regards,

Martijn S
Applications Engineer
NI Netherlands
0 Kudos
Message 2 of 9
(3,392 Views)
I can confirm that you can do this in 8.0 as well.
0 Kudos
Message 3 of 9
(3,389 Views)
Thanks for your answer. I am using version 8.6, so maybe I will upgrade it soon. In the meantime I worked around the problem by using the array data of the images directly.
0 Kudos
Message 4 of 9
(3,381 Views)
I am guessing that the image is .tiff and not png right?
0 Kudos
Message 5 of 9
(3,379 Views)
No, it is png files.
0 Kudos
Message 6 of 9
(3,377 Views)
Can you post a image?
0 Kudos
Message 7 of 9
(3,374 Views)

Hello Gurdie,

 

please verify in the Labview help if your version supports U16 ; I'm not completely positive about it, but I think it shouldn't be a problem. I notice a problem with a .PNG file. So maybe it is best to use .TIFF files.

 

Best regards,

Martijn S
Applications Engineer
NI Netherlands
0 Kudos
Message 8 of 9
(3,362 Views)

I am using lv 8.0

 

16.PNG

0 Kudos
Message 9 of 9
(3,358 Views)