示例#1
0
 /// <summary>
 /// for other params, <see>AbstractProgram</see>
 /// </summary>
 public GUIProgram(string tomatoDirPath,
                   string indexFileName,
                   SplitStrategy split,
                   Size windowSize) : base(tomatoDirPath, indexFileName, split)
 {
     this.windowSize = windowSize;
 }
示例#2
0
 /// <summary>
 /// for other params, <see>AbstractProgram</see>
 /// </summary>
 public ExtractCSVProgram(string tomatoDirPath,
                          string indexFileName,
                          SplitStrategy split,
                          TomatoDescriptorExtractor extractor) : base(tomatoDirPath, indexFileName, split)
 {
     this.extractor = extractor;
 }
 /// <summary>
 /// For other params, <see>AbstractProgram</see>
 /// </summary>
 /// <param name="classifiers">The classifiers tested by the programs</param>
 public ConsolePerformanceEvaluator(string tomatoDirPath,
                                    string indexFileName,
                                    SplitStrategy split,
                                    List <TomatoClassifier> classifiers) : base(tomatoDirPath, indexFileName, split)
 {
     this.classifiers = classifiers;
 }
示例#4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="tomatoDirPath"> Base dir of images and index files </param>
 /// <param name="indexFileName"> Main index file used to load train tomato images</param>
 /// <param name="split"> This object tells how to split the image load from the index</param>
 public AbstractProgram(string tomatoDirPath,
                        string indexFileName,
                        SplitStrategy split)
 {
     log = Logger.OnConsole();
     this.tomatoDirPath = tomatoDirPath;
     this.indexFilePath = Path.Combine(tomatoDirPath, indexFileName);
     this.splitStrategy = split;
 }
 /// <summary>
 /// for other params, <see>AbstractProgram</see>
 /// </summary>
 /// <param name="classifier">The classifier to train and to evalaute</param>
 /// <param name="testIndexName">index files that link each image in the test set</param>
 public ConsoleCompetitionOutput(string tomatoDirPath,
                                 string indexFileName,
                                 SplitStrategy split,
                                 TomatoClassifier classifier,
                                 string testIndexName) : base(tomatoDirPath, indexFileName, split)
 {
     this.indexName  = testIndexName;
     this.classifier = classifier;
 }