Bjoern Froehlich 13 жил өмнө
parent
commit
396fb643db

+ 4 - 1
semseg/SemSegContextTree.cpp

@@ -2002,9 +2002,12 @@ void SemSegContextTree::semanticseg ( CachedExample *ce, NICE::Image & segresult
     vector<double> sorted = probs;
     sort (sorted.begin(), sorted.end());
     
+    double thr = sorted[3];
+    thr = 0.0;
+    
     for(int c = 0; c < classes; c++)
     {
-      if(probs[c] < sorted[3])
+      if(probs[c] < thr)
       {
         useclass[c] = 1;
       }