viscircles function generates an error message
When I run the following code, the circles are detected but viscircles generates an error.
clear;
close all;
myImage = imread("washers.png");
G = im2gray(myImage);
fig1 = figure(1);
imshow(myImage);
[centers, radii] = imfindcircles(myImage, [10 150], ‘ObjectPolarity’, ‘bright’);
h = viscircles(centers, radii, Color=’b’);
Error Message –
Error using line
Too many input arguments.
Error in viscircles (line 43)
line(x,y,’Parent’,h, …
Error in ImageCircle (line 11)
h=viscircles(centers, radii,Color=’b’);When I run the following code, the circles are detected but viscircles generates an error.
clear;
close all;
myImage = imread("washers.png");
G = im2gray(myImage);
fig1 = figure(1);
imshow(myImage);
[centers, radii] = imfindcircles(myImage, [10 150], ‘ObjectPolarity’, ‘bright’);
h = viscircles(centers, radii, Color=’b’);
Error Message –
Error using line
Too many input arguments.
Error in viscircles (line 43)
line(x,y,’Parent’,h, …
Error in ImageCircle (line 11)
h=viscircles(centers, radii,Color=’b’); When I run the following code, the circles are detected but viscircles generates an error.
clear;
close all;
myImage = imread("washers.png");
G = im2gray(myImage);
fig1 = figure(1);
imshow(myImage);
[centers, radii] = imfindcircles(myImage, [10 150], ‘ObjectPolarity’, ‘bright’);
h = viscircles(centers, radii, Color=’b’);
Error Message –
Error using line
Too many input arguments.
Error in viscircles (line 43)
line(x,y,’Parent’,h, …
Error in ImageCircle (line 11)
h=viscircles(centers, radii,Color=’b’); viscircles MATLAB Answers — New Questions