SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
AutoPhotometryTaskFactory.cpp
Go to the documentation of this file.
1
17/*
18 * AutoPhotometryTaskFactory.cpp
19 *
20 * Created on: Jul 18, 2016
21 * Author: mkuemmel@usm.lmu.de
22 */
23
24#include <iostream>
25#include <sstream>
26
29
43
44
45namespace SourceXtractor {
46
49
57
59 m_magnitude_zero_point = manager.getConfiguration<MagnitudeConfig>().getMagnitudeZeroPoint();
60 m_kron_factor = manager.getConfiguration<AutoPhotometryConfig>().getAutoKronFactor();
61 m_kron_minrad = manager.getConfiguration<AutoPhotometryConfig>().getAutoKronMinrad();
62 m_symmetry_usage = manager.getConfiguration<WeightImageConfig>().symmetryUsage();
63
64 auto& measurement_config = manager.getConfiguration<MeasurementImageConfig>();
65 const auto& image_infos = measurement_config.getImageInfos();
66
68
69 for (unsigned int i = 0; i < image_infos.size(); ++i) {
70 m_auto_names.emplace_back(std::make_pair(std::to_string(i), image_infos[i].m_id));
71 m_images.push_back(image_infos[i].m_id);
72 }
73}
74
78
91
92}
std::vector< std::pair< std::string, unsigned int > > m_auto_names
void registerPropertyInstances(OutputRegistry &) override
std::shared_ptr< Task > createTask(const PropertyId &property_id) const override
Returns a Task producing a Property corresponding to the given PropertyId.
void reportConfigDependencies(Euclid::Configuration::ConfigManager &manager) const override
Registers all the Configuration dependencies.
void configure(Euclid::Configuration::ConfigManager &manager) override
Method which should initialize the object.
Auto photometry flux and magnitude.
const std::vector< MeasurementImageInfo > & getImageInfos() const
void registerPropertyInstances(const std::vector< std::pair< std::string, unsigned int > > &instance_names)
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
T make_pair(T... args)
T make_shared(T... args)
T to_string(T... args)