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 );
       FeaturePoolClassifier *fpc = new FPCRandomForestTransfer( &conf, classNames );
       vec_classifier = new VCFeaturePool( &conf, fpc );
       vec_classifier = new VCFeaturePool( &conf, fpc );
     } else {
     } else {
-      vec_classifier = GenericClassifierSelection::selectVecClassifier( &conf, "main" );
+      string classifierselection = conf.gS("main","classifier");
+      vec_classifier = GenericClassifierSelection::selectVecClassifier( &conf, classifierselection );
     }
     }
 
 
     NICE::Vector thresholds;
     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
 #ifdef WRITEREGIONS
     RegionGraph rg;
     RegionGraph rg;
     segmentation->getGraphRepresentation (img, regions,  rg);
     segmentation->getGraphRepresentation (img, regions,  rg);