Select connected regions in a binary image.
imbinary input image
[cols, rows]vectors of starting points (x,y)
connectconnectedness 4 or 8. default is 8
imoutthe image of all objects in image im that overlap pixels in (cols,rows)
idxindex of pixels in imout
Package: image