18 #ifndef _SEIMPLEMENTATION_PLUGIN_VIGNETARRAY_H_
19 #define _SEIMPLEMENTATION_PLUGIN_VIGNETARRAY_H_
27 namespace SourceXtractor {
32 const auto& representative = vignets.front().get().getVignet();
34 if (vignets.size() > 1) {
49 static_cast<size_t>(representative.
getWidth()), static_cast<size_t>(representative.
getHeight())
51 m_vignets = Euclid::make_unique<Euclid::NdArray::NdArray<DetectionImage::PixelType>>(shape);
53 for (
int x = 0;
x < representative.
getWidth(); ++
x) {
63 vignets.
size(),
static_cast<size_t>(representative.
getWidth()), static_cast<size_t>(representative.
getHeight())
65 m_vignets = Euclid::make_unique<Euclid::NdArray::NdArray<DetectionImage::PixelType>>(shape);
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) {
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y