In matlab you can use
cc = bwconncomp(bimg); pixels = cc.PixelIdxList{i}
Get a list of pixels for each connected component. What is the python equivalent? I tried
from skimage import measure label = measure.label(bimg)
To get tags, however, this does not apply to the list of pixels.
Any suggestions?
source share