소스 검색

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 );