Bjoern Froehlich 13 ani în urmă
părinte
comite
4702f4480d
2 a modificat fișierele cu 10 adăugiri și 2 ștergeri
  1. 10 1
      semseg/SemSegContextTree.cpp
  2. 0 1
      semseg/SemSegCsurka.cpp

+ 10 - 1
semseg/SemSegContextTree.cpp

@@ -62,7 +62,7 @@ SemSegContextTree::SemSegContextTree (const Config *conf, const MultiDataset *md
 
   pixelWiseLabeling = false;
 
-  useRegionFeature = conf->gB (section, "use_reagion_feat", true);
+  useRegionFeature = conf->gB (section, "use_region_feat", true);
   if (segmentationtype == "meanshift")
     segmentation = new RSMeanShift (conf);
   else if (segmentationtype == "none")
@@ -300,6 +300,15 @@ double SemSegContextTree::getBestSplit (std::vector<NICE::MultiChannelImageT<dou
       //use larger window size for context features
       tmpws *= 4;
     }
+    
+    
+    if(ft == 1)
+    {
+      if(depth < 8)
+      {
+        ft = 0;
+      }
+    }
 
     x1 = (int)((double)rand() / (double)RAND_MAX * (double)tmpws) - tmpws / 2;
     x2 = (int)((double)rand() / (double)RAND_MAX * (double)tmpws) - tmpws / 2;

+ 0 - 1
semseg/SemSegCsurka.cpp

@@ -6,7 +6,6 @@
 #include "core/image/Filter.h"
 #include "objrec-froehlichexp/semseg/postsegmentation/PSSImageLevelPrior.h"
 
-
 using namespace std;
 using namespace NICE;
 using namespace OBJREC;