Function File: [imout, idx] = bwselect(im, cols, rows, connect)

Select connected regions in a binary image.

im

binary input image

[cols, rows]

vectors of starting points (x,y)

connect

connectedness 4 or 8. default is 8

imout

the image of all objects in image im that overlap pixels in (cols,rows)

idx

index of pixels in imout

Package: image