Pixel Intensities of a 16-bit Image from LabVIEW

Updated Jan 18, 2023

Reported In

Software

  • LabVIEW Full

Driver

  • NI-IMAQ
  • NI-IMAQdx

Issue Details

I used a camera to acquire images and saved them as 16-bit images in LabVIEW. When I look at the image in an external viewer it will not display properly and the pixel values within the images do not appear to have 16 bits worth of data. Why is this?

Solution

There are several different things that may cause this to happen:

  • Your camera may not actually acquire images at 16-bit depths. Many cameras will acquire 10- or 12-bit images. Within LabVIEW these images will be represented as 16-bit because images can only be stored in multiples of 8 bits. The extra bits are simply disregarded by LabVIEW.
  • If you are expecting to see 16 bits worth of information but your camera is acquiring fewer than that, then this might be the problem. On most cameras you can check the bit depth of the image they acquire in Measurement & Automation Explorer under the Acquisition Parameters tab. 

  • If you are looking at the image data in an external viewer it is possible that it is looking for signed numbers. If your image contains unsigned values this could cause the information to seem off. This would also most likely cause display problems in your image viewer.