Bjoern Froehlich 13 years ago
parent
commit
db088c40a8
1 changed files with 6 additions and 2 deletions
  1. 6 2
      semseg/postsegmentation/PPSuperregion.cpp

+ 6 - 2
semseg/postsegmentation/PPSuperregion.cpp

@@ -1,6 +1,6 @@
 #include "PPSuperregion.h"
 
-#ifdef NICE_USELIB_ICE
+
 
 #include <core/iceconversion/convertice.h>
 
@@ -31,9 +31,10 @@ PPSuperregion::~PPSuperregion()
 {
 }
 
+
 void PPSuperregion::optimizeShape(Examples &regions, NICE::Matrix &mask, GenericImage<double> & probabilities)
 {
-
+#ifdef NICE_USELIB_ICE
 	vector<ice::Region> superregions;
 	vector<double> probs;
 	vector<int> classes;
@@ -191,6 +192,9 @@ void PPSuperregion::optimizeShape(Examples &regions, NICE::Matrix &mask, Generic
 	{
 		regions[i].first = classes[regmapsreg[i]];
 	}
+#else
+	throw("PPSuperRegion.cpp: please use ice library for this function");
+#endif
 }
 
 void PPSuperregion::getSuperregions(const Examples &regions, const NICE::Matrix &mask, vector<ice::Region> &superregions, vector<int> &classes, NICE::Matrix &smask)