Kaynağa Gözat

altlasten entfernt

Bjoern Froehlich 13 yıl önce
ebeveyn
işleme
4c4e3a3ab6
2 değiştirilmiş dosya ile 0 ekleme ve 9 silme
  1. 0 6
      semseg/SemSegContextTree.cpp
  2. 0 3
      semseg/SemSegContextTree.h

+ 0 - 6
semseg/SemSegContextTree.cpp

@@ -36,8 +36,6 @@ SemSegContextTree::SemSegContextTree (const Config *conf, const MultiDataset *md
   lfcw = new LFColorWeijer (conf);
   firstiteration = true;
 
-  grid = conf->gI (section, "grid", 10);
-
   maxSamples = conf->gI (section, "max_samples", 2000);
 
   minFeats = conf->gI (section, "min_feats", 50);
@@ -965,8 +963,6 @@ void SemSegContextTree::train (const MultiDataset *md)
                     feat.rProbs = &lastRegionProbs[iCounter];
                     double val = splitfeat->getVal (feat, x, y);
 
-                    //int subx = x / grid;
-                    //int suby = y / grid;
 #pragma omp critical
                     if (val < splitval)
                     {
@@ -1495,8 +1491,6 @@ void SemSegContextTree::semanticseg (CachedExample *ce, NICE::Image & segresult,
 
             double val = forest[tree][t].feat->getVal (feat, x, y);
 
-            //int subx = x / grid;
-            //int suby = y / grid;
             if (val < forest[tree][t].decision)
             {
               currentfeats.set (x, y, forest[tree][t].left, tree);

+ 0 - 3
semseg/SemSegContextTree.h

@@ -35,9 +35,6 @@ class SemSegContextTree : public SemanticSegmentation, public NICE::Persistent
     /** number of featuretype -> currently: local and context features = 2 */
     int ftypes;
 
-    /** distance between features */
-    int grid;
-
     /** maximum samples for tree  */
     int maxSamples;