Esempio n. 1
0
 public static ComponentAligner FromReferenceShape(FaceComponentsDetector detector, Dictionary <FaceComponent, BoundingBoxParam> componentParams, PointF[][] referenceShape)
 {
     return(new ComponentAligner(detector, componentParams, referenceShape));
 }
Esempio n. 2
0
 public ComponentAligner(FaceComponentsDetector detector, Dictionary <FaceComponent, BoundingBoxParam> componentParams, PointF[][] referenceShape)
 {
     this.Detector        = detector;
     this.componentParams = componentParams;
     this.ReferenceShape  = referenceShape;
 }
Esempio n. 3
0
        public static ComponentAligner FromReferenceImage(FaceComponentsDetector detector, Dictionary <FaceComponent, BoundingBoxParam> componentParams, Image <Gray, byte> referenceImage)
        {
            var referenceShape = detector.Fit(referenceImage);

            return(new ComponentAligner(detector, componentParams, referenceShape));
        }