61 const VectorImage <DetectionImage::PixelType>& representative) {
63 vignets.size(),
static_cast<size_t>(representative.
getWidth()),
static_cast<size_t>(representative.
getHeight())
67 for (
size_t v = 0; v < vignets.size(); ++v) {
68 const auto& img = vignets[v].get().getVignet();
69 assert (img.getWidth() == representative.
getWidth());
70 assert (img.getHeight() == representative.
getHeight());
71 for (
int x = 0; x < img.getWidth(); ++x) {
72 for (
int y = 0; y < img.getHeight(); ++y) {
73 m_vignets->at(v, x, y) = img.getValue(x, y);