I'm using the function imfindcircles on image but occurs an error that says that function or method 'imfindcircles' for input arguments of type 'uint8'. I'm using this tutorial of Mathworks. My code:
rgb = imread('circles.png');
figure
imshow(rgb)
gray_image = rgb2gray(rgb);
imshow(gray_image);
[centers, radii, metric] = imfindcircles(I,[40 45]);
centersStrong5 = centers(1:5,:);
radiiStrong5 = radii(1:5);
metricStrong5 = metric(1:5);
This is the error: ??? Undefined function or method 'imfindcircles' for input arguments of type 'uint8'.
imfindcircles.m
in your current working directory? – beakerimfindcircles
. What I'm asking is if you've overshadowed that implementation with your own function or variable name. Because that's the only way I can think of right now that that error makes sense. – beaker