On Wed, Dec 21, 2011 at 12:36 PM, Tony Yu <tsyu80 at gmail.com> wrote: > Actually, I've always found the return values for `ndimage.label` to be > surprising. Every time I use it, I expect to just get the labeled array. > Isn't the number of labeled regions equal to the max value of the labeled > array? That's correct. Cheers Stéfan