From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
The adaptive thresholding approach allows the user to extract relevant information information from images under broad variations in lighting conditions.
Description
For Machine Vision users who are challenged by non-uniform or changing lighting conditions, the Adaptive Thresholding algorithm is an image segmentation tool that is both powerful and flexible.
Hardware and Software Requirements
LabVIEW 2014 or compatible
Vision Development Module 2014 or compatible
Steps to Implement or Execute Code
Download the zip file attached below and extract the files to a known location
Open the Adaptive Threshold (Main).vi
Select an image (you can use the one provided in the zip file)
Select the Filter Size
Run this VI
Select a Region Of Interest (ROI)
The left image shows the Original Image and the balanced ROI image overlaid on it
The right image shows the selected ROI correctly thresholded.
Additional Information or References
Front Panel:
Alyssa H.
Applications Engineer
National Instruments
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.