MATLAB: Finding solid circles using imfind circles

Image Processing Toolboxinfindcirclessolid circle

Is there any way to make sure the circles detected by the imfindcircles function is a solid circle and has no black pixels inside of it?

Best Answer

Make a mask from the circle, then
hasBlackInside = min(grayImage(mask)) == 0;
hasBlackInside will be true if there is at least one black pixel inside the mask.