To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example demonstrates how to threshold an IMAQ image and show the result as a mask in the image
Description
This example opens an image file, performs a threshold on it and shows the threshold result as a mask on the original image.Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
Note: If your taps are interlaced vertically, use Transpose 2D Array to rotate your image after IMAQ ImageToArray and use an additional Transpose 2D Array to rotate your image before the final IMAQ ArrayToImage.
For color images use IMAQ ColorImageToArray and IMAQ ArrayToColorImage in place of IMAQ ImageToArray and IMAQ ArrayToImage, respectively. Be sure to change the Image Type of IMAQ Create if your image is not 8-bit grayscale. IMAQ ColorImageToArray and IMAQ ArrayToColorImage are available in NI Vision Development Module.
Also see: Swap Taps Using IMAQ Interlace community example for another way to swap taps in LV.
**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.