which algorithm should be used for the determination of distance of feature points from the origin or cneter

i need to determine the distance of feature points, that i have computed on left right eyes and centre of lips (make a triangle by joining all these three feature points) from the origin or centre of the face on x-y coordinates. plz help me im stuck in this and plz tellme whcih algo should i use for its solution??

Answers (1)

What was wrong with the answer I gave to your duplicate posting: http://www.mathworks.com/matlabcentral/answers/44531#answer_54584?

6 Comments

no this is wrong answer. i don't want voila jones algorithm for calculation of distance. i used voila jones just for face detection. plz read my question carefully thnx
So your question is how to find the distance between two points essentially? If you have the points already, then pick a method (e.g. using the Pythagorean theorem, like IA already suggested) for finding the distance and be consistent with it. Then do it 3 times (one for each side of the triangle) and you have the information you ask for in your question.
Perhaps the reason you're not getting the answer you're expecting is that you're not asking the right question.
not between two points. i want to calculate distance of feature points with respect to the origin(0,0) in Cartesian coordinates. so that if the feature points to the left or right i can detect it as the distance from the origin changed thnx
and yes i have all points. points on right center and left center of eye and the center of lips
The origin(0,0) is completely arbitrary and dependent on where you place it. Just be consistent with where you place it and I don't believe you should have an issue.
Yes, between two points. The origin (0,0) is also a point you know. You can use that as a point just as well as you can use any other point(s).

This question is closed.

Asked:

on 27 Jul 2012

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!