SourceXtractorPlusPlus  0.16
Please provide a description of the project.
MeasurementFramePixelCentroid.h
Go to the documentation of this file.
1 
23 #ifndef _SEIMPLEMENTATION_PROPERTY_MEASUREMENTFRAMEPIXELCENTROID_H
24 #define _SEIMPLEMENTATION_PROPERTY_MEASUREMENTFRAMEPIXELCENTROID_H
25 
27 #include "SEUtils/Types.h"
28 
29 namespace SourceXtractor {
30 
32 public:
36  virtual ~MeasurementFramePixelCentroid() = default;
37 
38  explicit MeasurementFramePixelCentroid(bool bad_projection)
39  : m_centroid_x(-1), m_centroid_y(-1), m_bad_projection(bad_projection) {}
40 
42  : m_centroid_x(centroid_x), m_centroid_y(centroid_y), m_bad_projection(false) {}
43 
46  return m_centroid_x;
47  }
48 
51  return m_centroid_y;
52  }
53 
56  bool badProjection() const {
57  return m_bad_projection;
58  }
59 
60 private:
63 };
64 
65 } /* namespace SourceXtractor */
66 
67 #endif
virtual ~MeasurementFramePixelCentroid()=default
Destructor.
MeasurementFramePixelCentroid(SeFloat centroid_x, SeFloat centroid_y)
SeFloat getCentroidY() const
Y coordinate of centroid.
SeFloat getCentroidX() const
X coordinate of centroid.
Base class for all Properties. (has no actual content)
Definition: Property.h:33
SeFloat32 SeFloat
Definition: Types.h:32