SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
DetectionImageConfig.h
Go to the documentation of this file.
1
22
23#ifndef _SEIMPLEMENTATION_DETECTIONIMAGECONFIG_H
24#define _SEIMPLEMENTATION_DETECTIONIMAGECONFIG_H
25
26#include "Configuration/Configuration.h"
30
31namespace SourceXtractor {
32
39 public:
40
44 virtual ~DetectionImageConfig() = default;
45
47 explicit DetectionImageConfig(long manager_id);
48
50
51 void initialize(const UserValues& args) override;
52
54
57 bool isReferenceImage() const { return m_is_reference_image; }
58
59 double getGain(size_t index = 0) const { return m_extensions.at(index).m_gain; }
60 double getSaturation(size_t index = 0) const { return m_extensions.at(index).m_saturation; }
61 int getInterpolationGap(size_t index = 0) const { return m_extensions.at(index).m_interpolation_gap; }
62
63 // Note: flux scale is already applied to all values returned,
64 // we still need to know what it was to adjust the weight map
65 double getOriginalFluxScale(size_t index = 0) const { return m_extensions.at(index).m_flux_scale; }
66
67 // Get the detection image source
69 return m_extensions.at(index).m_image_source;
70 }
71
72 size_t getExtensionsNb() const {
74 return 0;
75 } else {
76 return m_extensions.size();
77 }
78 }
79
80private:
82
94
96
98}; /* End of DetectionImageConfig class */
99
100} /* namespace SourceXtractor */
101
102
103#endif
std::map< std::string, boost::program_options::variable_value > UserValues
std::shared_ptr< DetectionImage > getDetectionImage(size_t index=0) const
std::shared_ptr< ImageSource > getImageSource(size_t index=0)
std::shared_ptr< CoordinateSystem > getCoordinateSystem(size_t index=0) const
double getOriginalFluxScale(size_t index=0) const
void initialize(const UserValues &args) override
std::vector< DetectionImageExtension > m_extensions
DetectionImageConfig(long manager_id)
Constructs a new DetectionImageConfig object.
virtual ~DetectionImageConfig()=default
Destructor.
int getInterpolationGap(size_t index=0) const
double getSaturation(size_t index=0) const
double getGain(size_t index=0) const
std::map< std::string, Configuration::OptionDescriptionList > getProgramOptions() override