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) {
36 vignets.
size(),
static_cast<size_t>(representative.getWidth()), static_cast<size_t>(representative.getHeight())
38 m_vignets = Euclid::make_unique<Euclid::NdArray::NdArray<DetectionImage::PixelType>>(shape);
40 for (
size_t v = 0; v < vignets.size(); ++v) {
41 const auto& img = vignets[v].get().getVignet();
42 assert (img.getWidth() == representative.getWidth());
43 assert (img.getHeight() == representative.getHeight());
44 for (
int x = 0;
x < img.getWidth(); ++
x) {
45 for (
int y = 0;
y < img.getHeight(); ++
y) {
53 static_cast<size_t>(representative.getWidth()), static_cast<size_t>(representative.getHeight())
55 m_vignets = Euclid::make_unique<Euclid::NdArray::NdArray<DetectionImage::PixelType>>(shape);
57 for (
int x = 0;
x < representative.getWidth(); ++
x) {
58 for (
int y = 0;
y < representative.getHeight(); ++
y) {
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y