Re: morphology.label() bug?
On Sat, Dec 17, 2011 at 7:36 PM, karoyakani <tj.takei@gmail.com> wrote:
It's very useful and common that we assume Background:="0"-value pixels. ndimage and matlab do so. I don't know why skimage doesn't.
I don't like having background == 0, but I'll settle for background == -1 as a default.
Regarding connectedness, both matlab and ndimage have options of 8- connect and 4-connect. Meantime skimage has only 8-connect. Why don't we add 4-connect as an option?
That's been added in the patch I proposed.
Regarding number of labeled regions (not counting the background regions), again matlab and ndimage compute and return it. Why don't we add it to the skimage, as it would be very useful to users?
This is a one-liner: len(np.unique(labels)) Cheers Stéfan
participants (1)
-
Stéfan van der Walt