# 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)
Anand on 2 Dec 2013
Commented: Anand on 5 Dec 2013
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?
##### 2 CommentsShowHide 1 older comment
Anand on 5 Dec 2013
can anyone help me with finding the distance between 2 points using hypot(a, b), norm(a,b) or sqrt((x2-x1)^2+(y2-y1)^2) method?
thank you

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?
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.