To download NI software, including the products shown below, visit ni.com/downloads.
Overview
The example demonstrates how to calculate the mean intensity of an IMAQ image section.
Description
With the 'IMAQ Histogram' function it is possible to calculate the overall intensity of an image or the intensity of an image section.
To calculate the intensity of an image section a mask has to be created. The mask normally is created from a ROI (region of interest) that in this example can be easily selected by the user with the 'IMAQ ContructROI' function.
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.
I don't understand why so much complexity? Use IMAQ ROIProfile VI with given ROI, no need of masking, casting.
Edit: Also the heading is misleading, is it Overall Image Intensity or the selected Region Mean Intensity?