SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
VignetTaskFactory.cpp
Go to the documentation of this file.
1
17
24
32
33namespace SourceXtractor {
34
38
40 auto vignet_config = manager.getConfiguration<VignetConfig>();
41 m_vignet_size = vignet_config.getVignetSize();
42 m_vignet_default_pixval = vignet_config.getVignetDefaultPixval();
43
44 auto& measurement_config = manager.getConfiguration<MeasurementImageConfig>();
45 const auto& image_infos = measurement_config.getImageInfos();
46
48
49 for (size_t i = 0; i < image_infos.size(); ++i) {
50 m_images.push_back(image_infos[i].m_id);
51 }
52}
53
55 if (property_id.getTypeId() == typeid(Vignet)) {
57 }
58 else if (property_id == PropertyId::create<VignetArray>()) {
60 }
61 return nullptr;
62}
63
64} // end of namespace SourceXtractor
65
const std::vector< MeasurementImageInfo > & getImageInfos() const
Identifier used to set and retrieve properties.
Definition PropertyId.h:40
static PropertyId create(unsigned int index=0)
Definition PropertyId.h:45
unsigned int getIndex() const
Definition PropertyId.h:70
std::type_index getTypeId() const
Definition PropertyId.h:66
void configure(Euclid::Configuration::ConfigManager &manager) override
Method which should initialize the object.
void reportConfigDependencies(Euclid::Configuration::ConfigManager &manager) const override
Registers all the Configuration dependencies.
std::shared_ptr< Task > createTask(const PropertyId &property_id) const override
Returns a Task producing a Property corresponding to the given PropertyId.
T make_shared(T... args)