I know how to make a closed component labeling for small structures with the help of bwlabel
. However, I have now the following image:
And using bwlabel on this image results only in two classes, the edge - and the everything around it.
I was wondering if there is an easy solutin in matlab to get the inner part of the "circle" as one class and the outer one as another class? The border could be a third class.
The code I have so far is onyl for testing bwlabel
i = imread('apple.jpg')
labels = bwlabel(i)