フィルターのクリア

Undefined function or method 'circle' for input arguments of type 'double

5 ビュー (過去 30 日間)
ibrahim
ibrahim 2013 年 3 月 21 日
Can someone help me resolve this issue?
"Undefined function or method 'circle' for input arguments of type 'double'___"
Please, can someone help me out? The code is stated below:
% Load an iris image and use the function pupilfinder to find the pupil
% center and its radius's (horizontal and vertical).
% Plots a circle and lines to best visualize these parameters
% fname='001_1_1.bmp';
imagename='iris.bmp';
F=imread(imagename); colormap('gray');
imagesc(F);
hold;
[cx,cy,rx,ry]=pupilfinder(imagename);
%plot horizontal line
x=[cx-rx*2 cx+rx*2]; y=[cy cy]; plot(x,y,'y');
%plot vertical line x=[cx cx];
y=[cy-ry*2 cy+ry*2];
plot(x,y,'y');
circle([cx cy], rx, 1000, 'y');

回答 (1 件)

Image Analyst
Image Analyst 2013 年 3 月 21 日
Apparently you don't have a circle function. You can use viscircles() if you have the Image Processing Toolbox, or you can use rectangle() (yes, I know it's a deceptive name) if you don't.
  2 件のコメント
ibrahim
ibrahim 2013 年 3 月 21 日
oh, can you give me a link to get the function? thanks
Image Analyst
Image Analyst 2013 年 3 月 21 日
It's right there on the Mathworks web site: http://www.mathworks.com/help/images/ref/viscircles.html

サインインしてコメントする。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by