The class for feature coordinate.
 private void DrawLandmark(Microsoft.ProjectOxford.Face.Contract.FeatureCoordinate point)
 {
     if (point == null)
     {
         return;
     }
     _viewer.DrawPoint2D((point.X, point.Y), (255, 255, 255), radius: 5);
 }
示例#2
0
 private static PointF convertPointFormation(
     FeatureCoordinate _landmark,
     FaceRectangle _rectangle)
 {
     PointF retPoint = new PointF();
     retPoint.X = (float)((_landmark.X - _rectangle.Left) / _rectangle.Width);
     retPoint.Y = (float)((_landmark.Y - _rectangle.Top) / _rectangle.Height);
     return retPoint;
 }