[SciPy-User] Image analysis: Counting masked areas
David Baddeley
david_baddeley at yahoo.com.au
Wed Oct 21 03:52:35 EDT 2009
scipy.ndimage.label (and also potentially ndimage.measurements) might be what you're looking for.
best wishes,
David
----- Original Message ----
From: Michael Aye <kmichael.aye at googlemail.com>
To: scipy-user at scipy.org
Sent: Wed, October 21, 2009 8:12:00 PM
Subject: [SciPy-User] Image analysis: Counting masked areas
Dear all,
is it possible to count the areas in an image, that have been masked
by some condition?
I need to count all areas in an image darker than a certain value.
Masking is no problem, but how do I count independent areas? I was
thinking just to look at the masked array, but then a pixel-by-pixel
check if the neighbour pixel is masked as well to find *independent*
masked areas sees numerically very costly.
Isn't there a better way?
Many thanks for any help!
Best regards,
Michael
_______________________________________________
SciPy-User mailing list
SciPy-User at scipy.org
http://mail.scipy.org/mailman/listinfo/scipy-user
More information about the SciPy-User
mailing list