|
@@ -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 ®ions, 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 ®ions, 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 ®ions, const NICE::Matrix &mask, vector<ice::Region> &superregions, vector<int> &classes, NICE::Matrix &smask)
|