Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

measure the white area(s) in an image

I want to measure a white area in a binary image, how can i do this ?
I´m useing Imaq.

Please describe it some more detailed

Thanks
0 Kudos
Message 1 of 4
(3,235 Views)
If you are using the vision toolkit, then you can then do paticle analysis to determine the size of each blob of white, or the sum of all white pixels. If not using Vision, you can use the image to array function, then iterate through the resulting 2-D array, and increment a counter each time a pixel value is greater than a predetermined value. You will not be able to find the size of individual blobs of white, though.
0 Kudos
Message 2 of 4
(3,235 Views)
I´m using Imaq Vision
0 Kudos
Message 3 of 4
(3,235 Views)
There is a shipping example called "Particle Analysis Report Example.vi" that finds the area of the white blobs. The example can be found in "...\LabVIEW x.x\examples\Vision\2. Functions\Binary Analysis" directory where x.x is replaced by the version of LabVIEW you are using.
0 Kudos
Message 4 of 4
(3,235 Views)