|
@@ -458,12 +458,11 @@ void LFColorWeijer::visualizeFeatures ( const NICE::ColorImage & cimg, NICE::Col
|
|
|
showImage(combinedout, "Ergebnis");
|
|
|
}
|
|
|
|
|
|
-void LFColorWeijer::getFeats(const ColorImage &img, vector<vector<vector<double> > > &feats)
|
|
|
+void LFColorWeijer::getFeats(const ColorImage &img, MultiChannelImageT<double> &feats)
|
|
|
{
|
|
|
int width = (int)img.width();
|
|
|
int height = (int)img.height();
|
|
|
-
|
|
|
- feats = vector<vector<vector<double> > >(width,vector<vector<double> >(height,vector<double>(hist.size(),0.0)));
|
|
|
+ feats.reInit(width, height, hist.size(), true);
|
|
|
|
|
|
NICE::MultiChannelImageT<double> genimg, imglab;
|
|
|
|
|
@@ -484,12 +483,10 @@ void LFColorWeijer::getFeats(const ColorImage &img, vector<vector<vector<double>
|
|
|
val = std::max(val, 0);
|
|
|
b[j] = val;
|
|
|
}
|
|
|
- feats[x][y][i] = hist[i][b[0]][b[1]][b[2]];
|
|
|
+ feats.set(x, y, hist[i][b[0]][b[1]][b[2]], i);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
-
|