To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example uses Vision Development Module VIs combined with array math to find the average values of pixels inside individual particles in an image.
Description
To perform particle measurements beyond binary images, the Particle Analysis VI contains outputs such as bounding box coordinates to use with grayscale analysis VIs. For more unique analyses of non-rectangular or -circular particles such as intensity measurements, the easiest approach is to use array math rather than IMAQ Masks. This example averages the intensity values of discrete particles identified from a binary particle analysis. The results are then overlaid on 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.
Great work Mr. karl-G. I'm designing vision based project to messure dimensions of an object. can u please suggest some useful tools for my project. thank a lot man keep rocking.
The best place to start are with the Vision Development Module shipping examples for caliper functions. The Clamp example shows how to use the caliper to find the dimensions of an object. These can also be paired with the calibration VIs to turn pixel values into real world distances.