Bjoern Froehlich 12 年 前
コミット
5211cf4ef1
2 ファイル変更3 行追加2 行削除
  1. 2 1
      progs/testClassifier.cpp
  2. 1 1
      semseg/SemSegContextTree.cpp

+ 2 - 1
progs/testClassifier.cpp

@@ -173,7 +173,8 @@ int main( int argc, char **argv )
       FeaturePoolClassifier *fpc = new FPCRandomForestTransfer( &conf, classNames );
       vec_classifier = new VCFeaturePool( &conf, fpc );
     } else {
-      vec_classifier = GenericClassifierSelection::selectVecClassifier( &conf, "main" );
+      string classifierselection = conf.gS("main","classifier");
+      vec_classifier = GenericClassifierSelection::selectVecClassifier( &conf, classifierselection );
     }
 
     NICE::Vector thresholds;

+ 1 - 1
semseg/SemSegContextTree.cpp

@@ -1763,7 +1763,7 @@ void SemSegContextTree::semanticseg (CachedExample *ce, NICE::Image & segresult,
       }
     }
 
-#define WRITEREGIONS
+#undef WRITEREGIONS
 #ifdef WRITEREGIONS
     RegionGraph rg;
     segmentation->getGraphRepresentation (img, regions,  rg);