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