I a new to MATLAB and i am trying to apply circle fitting technique to the following image.
Image
Expected Output
I used the following code with no luck:
[centers, radii] = imfindcircles(W,[30 65],'ObjectPolarity','bright');
figure,imshow(W);% title('Sobel gradient');
viscircles(centers,radii,'Color','b');
Note that the circle size can vary between picture
Any suggestions.