The Matlab 5.0 image processing toolbox comes with a nice connected-components labeling program called 'bwlabel'. I'm looking for something that is like that, except that I would like it to tolerate gaps. For example, in a binary image like this:
I would like the two clumps of o's to be labeled as two separate regions, rather than one region separated by a thin line. I'm guessing there might be a way of doing this by setting some sort of minimum threshold on what the labeling algorithm considers to be a connection.
Does anyone by any chance have such a thing already? Or can someone point me to literature that discusses how this could be implemented?
-- Mike Hucka email@example.com http://www.eecs.umich.edu/~hucka University PhD to be, computational models of human visual processing (AI Lab) of UNIX systems administrator & programmer/analyst (EECS DCO) Michigan