please help...How to find the left-most and right-most corners points of the mouth and calculate the distance between them?

43 views (last 30 days)
Hi, I am not quite sure how to select the left-most and right-most corners points from the cluster of pixels that are detected in the mouth region, and after selecting the left-most and right-most corners points how do i calculate the distance between them?
Thank you in advance

Accepted Answer

Image Analyst
Image Analyst on 2 Dec 2013
I would think hypot(a, b) would work, or norm(a,b) or sqrt((x2-x1)^2+(y2-y1)^2). Did you try any of those methods?
  5 Comments
Anand
Anand on 5 Dec 2013
as you mentioned "The point with the smallest y-coordinate is the left most, the point with the largest y-coordinate is the right most"
points in mouth region:-
107.0192 342.0349
112.7923 345.3988
121.1538 327.0072
127.0492 345.0479
129.0120 345.1025
132.7288 346.3319
135.6974 355.0060
137.0973 344.4568
137.2201 378.8838
138.5056 350.7361
142.1838 351.2438
142.0653 377.8724
144.9402 351.5071
146.4346 356.3987
150.6828 347.7409
154.9602 350.1777
156.3195 326.3300
157.2722 378.5677
160.0357 354.1214
166.1089 346.3039
172.1073 345.4921
180.2071 320.6378
188.2948 344.3862
192.0639 342.3253
smallest y-coordinate = 320.6378 Largest y-coordinate = 378.8838
I am really confused on how to implement this method sqrt((x2-x1)^2+(y2-y1)^2) to find the distance.
can you please help me.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!