コード例 #1
0
ファイル: Controller.cs プロジェクト: cric96/-vision_exam
 /// <summary>
 ///
 /// </summary>
 /// <param name="tomatoSets">
 /// The tomato set divided into training and validation.
 /// In the training set, the classificator learns the svm params.
 /// The classifier predicts label on the validation set.
 /// </param>
 public Controller(
     IDictionary <SetType, List <Tomato> > tomatoSets)
 {
     this.images    = new List <VisualEvent>();
     imageExtractor = new LBPExtractor(true);
     imageExtractor.VisualEventManager += OnImageComputed;
     classifier      = new TomatoClassifier(new LBPExtractor(false), SVMClassifier.Linear(0.43f));
     this.tomatoSets = tomatoSets;
 }
コード例 #2
0
ファイル: Launcher.cs プロジェクト: cric96/-vision_exam
        static TomatoClassifier standardClassifier()
        {
            var extractor = new LBPExtractor(false);

            return(new TomatoClassifier(extractor, SVMClassifier.Linear(0.43f))); //best performance with 0.43
        }