public static PhotoSketchFeatureExtractor GetPhotoSketchFeatureExtractor(PointF[][] referenceShape) { var boundingBoxParams = Params.GetComponentBoundingBoxParams(); var blockParams = Params.GetComponentBlockParams(); var detector = ComponentAlignerFactory.FromReferenceShape(boundingBoxParams, referenceShape); return(PhotoSketchFeatureExtractorFactory.Default(detector, blockParams)); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var featureBlockParams = Params.GetComponentBlockParams(); var boundingBoxParams = Params.GetComponentBoundingBoxParams(); var referenceShape = Params.GetReferenceShape(); var componentExtractor = ComponentAlignerFactory.FromReferenceShape(boundingBoxParams, referenceShape); var featureExtractor = PhotoSketchFeatureExtractorFactory.Default(componentExtractor, featureBlockParams); var form = new FormGalleryExtraction(featureExtractor); Application.Run(form); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var featureBlockParams = Params.GetComponentBlockParams(); var boundingBoxParams = Params.GetComponentBoundingBoxParams(); var referenceShape = Params.GetReferenceShape(); var componentExtractor = ComponentAlignerFactory.FromReferenceShape(boundingBoxParams, referenceShape); var cbr = new PhotoSketchCBIR(PhotoSketchFeatureExtractorFactory.Default(componentExtractor, featureBlockParams)); var view = new FormDashboardCBIR(); var controller = new PresenterCBIR(view, cbr); Application.Run(view); }