MATLAB: Segment the circular regions

circleImage Processing Toolboximfindcircles

i got the center and radius using imfindcircles… how to segment the circular regions out of the image with the centers and radii….
[centers, radii] = imfindcircles(rgb,[20 25]);

Best Answer

What does segment out mean to you? You can create a circular mask from code in the FAQ. http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F
Then you can use the mask as an index, or multiply it by the image to produce an image blackened everywhere except in the mask.
Related Question