Re: morphology.label() bug?
21 Dec
2011
21 Dec
'11
10:02 p.m.
On Sat, Dec 17, 2011 at 7:36 PM, karoyakani
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
4503
Age (days ago)
4503
Last active (days ago)
0 comments
1 participants
participants (1)
-
Stéfan van der Walt