SourceXtractorPlusPlus  0.19
SourceXtractor++, the next generation SExtractor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DetectionImageConfig.h
Go to the documentation of this file.
1 
23 #ifndef _SEIMPLEMENTATION_DETECTIONIMAGECONFIG_H
24 #define _SEIMPLEMENTATION_DETECTIONIMAGECONFIG_H
25 
30 
31 namespace 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 
55  std::shared_ptr<DetectionImage> getDetectionImage(size_t index = 0) const;
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 
75 private:
77 
82 
83  double m_gain {0.0};
84  double m_saturation {0.0};
85  double m_flux_scale {1.0};
86 
88  };
89 
91 
92 }; /* End of DetectionImageConfig class */
93 
94 } /* namespace SourceXtractor */
95 
96 
97 #endif
double getOriginalFluxScale(size_t index=0) const
std::shared_ptr< DetectionImage > getDetectionImage(size_t index=0) const
Provides the detection image.
STL class.
double getGain(size_t index=0) const
int getInterpolationGap(size_t index=0) const
STL class.
std::shared_ptr< CoordinateSystem > getCoordinateSystem(size_t index=0) const
std::map< std::string, Configuration::OptionDescriptionList > getProgramOptions() override
std::vector< DetectionImageExtension > m_extensions
double getSaturation(size_t index=0) const
virtual ~DetectionImageConfig()=default
Destructor.
void initialize(const UserValues &args) override
DetectionImageConfig(long manager_id)
Constructs a new DetectionImageConfig object.
STL class.
std::shared_ptr< ImageSource > getImageSource(size_t index=0)