label region in bi-level image with python
<p>I want to tag clusters of neighboring pixels from a 2D binary matrix in python.
Basically, I am trying to find something similar to the idl function label_region
<a href="http://star.pst.qub.ac.uk/idl/LABEL_REGION.html" rel="nofollow">http://star.pst.qub.ac.uk/idl/LABEL_REGION.html</a>
Do you have any advice?
Thanks </p>
