Exemplo n.º 1
0
        private static FaceRecognitionDotNet.Point CenterOf(FaceRecognitionDotNet.Point p1, FaceRecognitionDotNet.Point p2)
        {
            var x = (p1.X + p2.X) / 2;
            var y = (p1.Y + p2.Y) / 2;

            return(new FaceRecognitionDotNet.Point(x, y));
        }
Exemplo n.º 2
0
 private static double GetEuclideanDistance(FaceRecognitionDotNet.Point p1, FaceRecognitionDotNet.Point p2)
 {
     return(Math.Sqrt(Math.Pow(p1.X - p2.X, 2) + Math.Pow(p1.Y - p2.Y, 2)));
 }