How to count the black pixels in a segmented section of image?
13 views (last 30 days)
I am using this code to show a segmented image using active contour method.
img=im2bw(imageArray,threshlod_value); %making it black&white
And the output is this:
I want to calculate the black pixels within the segmented boundary after it is turned black and white. How do I do that?