Browse Source

minor bugfix

Johannes Ruehle 11 years ago
parent
commit
ef02d1aa52
1 changed files with 1 additions and 1 deletions
  1. 1 1
      semseg/SemSegNovelty.cpp

+ 1 - 1
semseg/SemSegNovelty.cpp

@@ -732,9 +732,9 @@ void SemSegNovelty::semanticseg ( CachedExample *ce, NICE::Image & segresult, NI
           {
               if(mask(x,y) == maxUncertRegion)
               {
+                  int classnoTmp = labels(x,y);
                   if ( forbidden_classesActiveLearning.find(classnoTmp) != forbidden_classesActiveLearning.end() )
                       continue;
-                  int classnoTmp = labels(x,y);
                   Example t_Example(NULL, x, y);
                   t_Example.vec = NULL;
                   t_Example.svec = new SparseVector ( featdim );