필터 지우기
필터 지우기

i want apply corner detection in image but show error ??? Attempt to execute SCRIPT corner as a function: please help me

조회 수: 1 (최근 30일)
%codeing at below and i am using matlab 2011a
x= imread('Lena.tif'); c = corner(x,'Harris'); imshow(imadjust(x)); hold on plot(c(:,1), c(:,2), 'g*');
when you run the error show:
??? Attempt to execute SCRIPT corner as a function: E:\corner.m
Error in ==> Untitled at 4 c = corner(x,'Harris');

채택된 답변

jiyo
jiyo 2014년 3월 13일
It seems to run fine for me..I just executed your code with my image.
x= imread('spine.jpg');
x=rgb2gray(x);
c = corner(x,'Harris');
imshow(imadjust(x));
hold on
plot(c(:,1), c(:,2), 'g*');

추가 답변 (2개)

John D'Errico
John D'Errico 2014년 3월 12일
Try this:
which corner -all
So you wrote a script called corner. Then you tried to use the function corner. Do you see the problem here? Don't do it. Rename your script to avoid the name conflict. It seems pretty clear.
  댓글 수: 2
Image Analyst
Image Analyst 2014년 3월 13일
mohammed's "Answer" moved here since it's not an actual "Answer" to his original question:
please help me how i solve this problem in this code , i dont understand whats solution problem in this code
Image Analyst
Image Analyst 2014년 3월 13일
I think John gave you instructions already. Did you carry those out? If so, why did you not respond? If not, why not?

댓글을 달려면 로그인하십시오.


mohammed
mohammed 2014년 3월 13일
thank you jiyo thank you very much

카테고리

Help CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by