How to Properly Save a Binary Image in LabVIEW?

Updated Jul 28, 2022

Reported In

Hardware

  • Camera
  • Smart Camera

Software

  • LabVIEW
  • Vision Development Module

Issue Details

I just created a binary image from LabVIEW but I do not know how to save the image.
If I save as the image in LabVIEW, a black image will be saved.
 

Solution

The brightness of a color on a pixel can be shown as 24 bits which is 000 to 255. The higher the value, the brighter the color of the pixel on the image. Since binary images represents each pixel as ones and zeros, the image saved will be a dark image because one and zero represents low in brightness. Therefore, before saving a binary image, please use IMAQ Multiply VI and multiple 255 to the binary image. This will increase the contrast of black and white on the image. Please refer the picture below for an example code on how to convert a grayscale image to binary image and use the IMAQ Multiply VI.

Grayscale Image to Binary with IMAQ Multiply

Additional Information

For more information on the example code above, please refer to this link .