When I use regionprops(), it returns the measurement of property of the image. What is the property here? color? something else?
Best Answer
By and large, the properties returned are usually numbers that describe each contiguous region in a binary mask.
It is also used to describe binary mask regions in relation to a grayscale image. i.e. given a circle in binary mask, what is the average intensity in a corresponding grayscale image.
Some "properties" returned are arrays that represent the subregion corresponding to binary mask regions. These arrays are either the raw data, or modifications of the binary mask i.e. ConvexHull.
The mask just tells you which pixels are in the region. To count the black pixels within the mask, you need to look at both in the region and the value in the original image. Something like this:
Best Answer