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

1 Ansicht (letzte 30 Tage)
vinay sankar
vinay sankar am 23 Mär. 2014
Beantwortet: Image Analyst am 23 Mär. 2014
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);

Antworten (1)

Image Analyst
Image Analyst am 23 Mär. 2014
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.

Kategorien

Mehr zu Geometric Transformation and Image Registration finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by