To download NI software, including the products shown below, visit ni.com/downloads.
This example demonstrates how to convert a grayscale image into a binary image with the IMAQ Threshold VI.
Description
Some of the image processing functions are only meant to input binary images. However, if you image is not binary, you will have to convert it to utilize these functions. To do this, use an IMAQ Thershold (instead of IMAQ Cast) with a range value of 0,1. Then, ensure to change your palette on your Image Display to "Binary" to properly view the image.
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.