浏览代码

minor bugfix

Johannes Ruehle 11 年之前
父节点
当前提交
ef02d1aa52
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 );