SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
ShapeParameters.h
Go to the documentation of this file.
1
17/*
18 * ShapeParameters.h
19 *
20 * Created on: Jan 27, 2017
21 * Author: mschefer
22 */
23
24#ifndef _SEIMPLEMENTATION_PLUGIN_SHAPEPARAMETERS_SHAPEPARAMETERS_H_
25#define _SEIMPLEMENTATION_PLUGIN_SHAPEPARAMETERS_SHAPEPARAMETERS_H_
26
27#include "SEUtils/Types.h"
29
30namespace SourceXtractor {
31
32class ShapeParameters : public Property {
33public:
34
37
38 virtual ~ShapeParameters() = default;
39
44 return m_a;
45 }
46
51 return m_b;
52 }
53
58 return m_theta;
59 }
60
68 return m_cxx;
69 }
70
78 return m_cyy;
79 }
80
88 return m_cxy;
89 }
90
91 SeFloat getAbcor() const {
92 return m_abcor;
93 }
94
95 SeFloat getArea() const {
96 return m_area;
97 }
98
100 return m_a / m_b;
101 }
102
104 return 1 - m_b / m_a;
105 }
106
108 return m_intensity;
109 }
110
111 bool getSinguFlag() const {
112 return m_singu_flag;
113 }
114
115private:
116 SeFloat m_a, m_b, m_theta; // ellipse semi-major axis, semi-minor axis, and angle
122};
123
124}
125
126
127
128#endif /* _SEIMPLEMENTATION_PLUGIN_SHAPEPARAMETERS_SHAPEPARAMETERS_H_ */
Base class for all Properties. (has no actual content)
Definition Property.h:33
ShapeParameters(SeFloat a, SeFloat b, SeFloat theta, SeFloat abcor, SeFloat cxx, SeFloat cyy, SeFloat cxy, SeFloat area, SeFloat intensity, bool singu)
virtual ~ShapeParameters()=default