How to draw a curve along the mouth with the obtained corner points?

조회 수: 1 (최근 30일)
vinay sankar
vinay sankar 2014년 3월 23일
답변: Image Analyst 2014년 3월 23일
I got an error while drawing a curve for the obtained corner points of the mouth. I used vision.CornerDetector and step commands to obtains the points, but i couldn't draw the curve using polyfit and polyval commands.The set of steps I have written is :
cornerDetector = vision.CornerDetector('Method', 'Minimum eigenvalue (Shi & Tomasi)');
points = step(cornerDetector, rgb2gray(mouthcrop));
P = polyfit(points(:,1),points(:,2),2);
Y = polyval(P,points(:,1));
plot(points(:,1),Y,'b','linewidth',2,'markersize',10)
The error that is displayed:
Undefined function 'qr' for input arguments of type 'uint32'
Error in polyfit (line 66)
[Q,R] = qr(V,0);

답변 (1개)

Image Analyst
Image Analyst 2014년 3월 23일
Read this http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup then fix your post. Also, you forgot to post an image so I really don't know how to help you since I can't visualize it. About the only thing I can think of is John D'Errico's interparc: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A679 but we might have better solutions if we knew what you were dealing with.

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by