SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
DetectionImageConfig.h
Go to the documentation of this file.
1
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
58 double getGain(size_t index = 0) const { return m_extensions.at(index).m_gain; }
59 double getSaturation(size_t index = 0) const { return m_extensions.at(index).m_saturation; }
60 int getInterpolationGap(size_t index = 0) const { return m_extensions.at(index).m_interpolation_gap; }
61
62 // Note: flux scale is already applied to all values returned,
63 // we still need to know what it was to adjust the weight map
64 double getOriginalFluxScale(size_t index = 0) const { return m_extensions.at(index).m_flux_scale; }
65
66 // Get the detection image source
68 return m_extensions.at(index).m_image_source;
69 }
70
71 size_t getExtensionsNb() const {
72 return m_extensions.size();
73 }
74
75private:
77
89
91
92}; /* End of DetectionImageConfig class */
93
94} /* namespace SourceXtractor */
95
96
97#endif
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