瀏覽代碼

set x and y position of new example that was semantically segmented...

Johannes Ruehle 11 年之前
父節點
當前提交
3eab2bd63f
共有 1 個文件被更改,包括 11 次插入11 次删除
  1. 11 11
      semseg/SemSegNovelty.cpp

+ 11 - 11
semseg/SemSegNovelty.cpp

@@ -1,20 +1,20 @@
 #include <sstream>
 #include <iostream>
 
-#include "SemSegNovelty.h"
-
-#include <core/image/FilterT.h>
-#include <core/basics/numerictools.h>
-#include <core/basics/StringTools.h>
-#include <core/basics/Timer.h>
+#include "core/image/FilterT.h"
+#include "core/basics/numerictools.h"
+#include "core/basics/StringTools.h"
+#include "core/basics/Timer.h"
 
-#include <gp-hik-exp/GPHIKClassifierNICE.h>
-#include <vislearning/baselib/ICETools.h>
-#include <vislearning/baselib/Globals.h>
-#include <vislearning/features/fpfeatures/SparseVectorFeature.h>
+#include "gp-hik-exp/GPHIKClassifierNICE.h"
+#include "vislearning/baselib/ICETools.h"
+#include "vislearning/baselib/Globals.h"
+#include "vislearning/features/fpfeatures/SparseVectorFeature.h"
 
 #include "segmentation/GenericRegionSegmentationMethodSelection.h"
 
+#include "SemSegNovelty.h"
+
 using namespace std;
 using namespace NICE;
 using namespace OBJREC;
@@ -666,7 +666,7 @@ void SemSegNovelty::semanticseg ( CachedExample *ce, NICE::Image & segresult, NI
               if ( forbidden_classesActiveLearning.find(classnoTmp) != forbidden_classesActiveLearning.end() )
                 continue;
               
-              Example example;
+              Example example(NULL, x, y);
               example.vec = NULL;
               example.svec = new SparseVector ( featdim );