MATLAB: How to split a Connected Component into components , after following particular criteria.???

image analysisimage processingpattern matching

Hi, After decomposing binary image into different connected components, I want extract each connected component and split a connected component if it has particular number of pixels in it. So that total number of connected components are increased….Is there any way to do that…

Best Answer

Sure. Just loop over CC(i) and use the CC(i).PixelIdxList field to determine the number of components and to apply your splitting criterion. At the very end, modify all the CC(i).NumObjects values.