MATLAB: Please help…How to find the left-most and right-most corners points of the mouth and calculate the distance between them

computer vision system toolboxComputer Vision Toolboxcorner detectionface detectionImage Acquisition Toolboxurgent

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

Best Answer

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?