This post has NOT been accepted by the mailing list yet.
Hello, I have a few questions. I'm working on this image (original image is in the end of the post), which is thresholded binary.
How can I get the number of pixels in every 'white part' of the image (non-background), which are 12, I know that by ndimage.label.
Mainly I want to know which of that 12 parts is the biggest so that I can set all other parts to 'zero' -> background value.
import numpy as np
from scipy import ndimage