Cluster growing of blobs
问题 Consider the following image which is from Mathworks: I have labelled the blobs with [L, num]= bwlabel(I); How do I connect all the blobs iteratively,i.e.start with one blob and find the nearest one to it.Consider the left-most two blobs, there can be many lines that can be drawn from many points of a blob to connect to the other blob, but the shortest one would be obtained by finding the pixel of a blob that is nearest to the other blob, find a similar pixel in the other blob and connect