SourceXtractorPlusPlus  0.19
SourceXtractor++, the next generation SExtractor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DetectionFrameInfo.h
Go to the documentation of this file.
1 
18 #ifndef _SEIMPLEMENTATION_PLUGIN_DETECTIONFRAMEINFO_DETECTIONFRAMEINFO_H_
19 #define _SEIMPLEMENTATION_PLUGIN_DETECTIONFRAMEINFO_DETECTIONFRAMEINFO_H_
20 
21 #include "SEUtils/Types.h"
22 
26 
27 namespace SourceXtractor {
28 
29 class DetectionFrameInfo : public Property {
30 
31 public:
32  virtual ~DetectionFrameInfo() = default;
33 
34  DetectionFrameInfo(int width, int height, double gain, double saturation,
35  double variance_threshold, double background_median_rms, const std::map<std::string,
36  MetadataEntry>& metadata = std::map<std::string, MetadataEntry>(), size_t hdu_index=0)
37  : m_width(width), m_height(height),
38  m_gain(gain), m_saturation(saturation),
39  m_variance_threshold(variance_threshold), m_background_median_rms(background_median_rms),
40  m_metadata(metadata),
41  m_hdu_index(hdu_index) {}
42 
43  double getGain() const {
44  return m_gain;
45  }
46 
47  double getSaturation() const {
48  return m_saturation;
49  }
50 
51  int getWidth() const {
52  return m_width;
53  }
54 
55  int getHeight() const {
56  return m_height;
57  }
58 
60  return m_variance_threshold;
61  }
62 
65  }
66 
67  // Metadata of the original image
69  return m_metadata;
70  };
71 
72  size_t getHduIndex() const {
73  return m_hdu_index;
74  }
75 
76 private:
77  int m_width;
78  int m_height;
79 
80  double m_gain;
81  double m_saturation;
82 
85 
87  size_t m_hdu_index;
88 };
89 
90 }
91 
92 #endif /* _SEIMPLEMENTATION_PLUGIN_DETECTIONFRAMEINFO_DETECTIONFRAMEINFO_H_ */
const std::map< std::string, MetadataEntry > & getMetadata() const
SeFloat32 SeFloat
Definition: Types.h:32
STL class.
Base class for all Properties. (has no actual content)
Definition: Property.h:33
STL class.
std::map< std::string, MetadataEntry > m_metadata
DetectionFrameInfo(int width, int height, double gain, double saturation, double variance_threshold, double background_median_rms, const std::map< std::string, MetadataEntry > &metadata=std::map< std::string, MetadataEntry >(), size_t hdu_index=0)
virtual ~DetectionFrameInfo()=default