Scipy Ndimage Measurement Labeling Is Not Working Properly
I am trying to label this image into two regions: And here is my code: from scipy.ndimage import measurements,morphology from PIL import Image from numpy import * im = array(Imag
Solution 1:
I'm pretty sure you're counting the white pixels rather than the black pixels. Try inverting the image and then count.
Post a Comment for "Scipy Ndimage Measurement Labeling Is Not Working Properly"