Example #1
0
 public static ComponentAligner FromReferenceShape(FaceComponentsDetector detector, Dictionary <FaceComponent, BoundingBoxParam> componentParams, PointF[][] referenceShape)
 {
     return(new ComponentAligner(detector, componentParams, referenceShape));
 }
Example #2
0
 public ComponentAligner(FaceComponentsDetector detector, Dictionary <FaceComponent, BoundingBoxParam> componentParams, PointF[][] referenceShape)
 {
     this.Detector        = detector;
     this.componentParams = componentParams;
     this.ReferenceShape  = referenceShape;
 }
Example #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));
        }