02-20-2018 05:16 AM
Hi to all.
I Have an inspection image an a template.
The template is inside inspection image.
I use pattern matching to know the template position (ROI) in the inspection image.
Know I would like to count the white pixels in that found ROI.
How can I do that?
Thanks.
Solved! Go to Solution.
02-20-2018 05:28 AM
Get the pixel array from your ROI and Check which ever is white based on your pixel value and count the same
02-20-2018 05:43 AM
02-20-2018 05:58 AM
Yes, the problem with histogram.vi is that it calculates pixel information for whole image and I need just for a ROI.
02-20-2018 06:01 AM - edited 02-20-2018 06:06 AM
If you checked the example which i pointed it gives the Histogram in the ROI and not the entire image.
Ref: http://www.ni.com/example/30677/en/
02-20-2018 07:35 AM
Try to share the Code which you tried. so that better guidance can be given based on your view.