SourceXtractorPlusPlus  0.15
Please provide a description of the project.
PixelCentroid.h
Go to the documentation of this file.
1 
23 #ifndef _SEIMPLEMENTATION_PROPERTY_PIXELCENTROID_H
24 #define _SEIMPLEMENTATION_PROPERTY_PIXELCENTROID_H
25 
26 #include "SEUtils/Types.h"
28 
29 namespace SourceXtractor {
30 
37 class PixelCentroid : public Property {
38 public:
39 
43  virtual ~PixelCentroid() = default;
44 
45  PixelCentroid(SeFloat centroid_x, SeFloat centroid_y) : m_centroid_x(centroid_x), m_centroid_y(centroid_y) {}
46 
49  return m_centroid_x;
50  }
51 
54  return m_centroid_y;
55  }
56 
57 private:
59 
60 }; /* End of PixelCentroid class */
61 
62 } /* namespace SourceXtractor */
63 
64 
65 #endif
SourceXtractor::PixelCentroid::~PixelCentroid
virtual ~PixelCentroid()=default
Destructor.
SourceXtractor::Property
Base class for all Properties. (has no actual content)
Definition: Property.h:33
Types.h
SourceXtractor::PixelCentroid
The centroid of all the pixels in the source, weighted by their DetectionImage pixel values.
Definition: PixelCentroid.h:37
SourceXtractor::SeFloat
SeFloat32 SeFloat
Definition: Types.h:32
SourceXtractor::PixelCentroid::getCentroidX
SeFloat getCentroidX() const
X coordinate of centroid.
Definition: PixelCentroid.h:48
SourceXtractor::PixelCentroid::m_centroid_x
SeFloat m_centroid_x
Definition: PixelCentroid.h:58
SourceXtractor::PixelCentroid::getCentroidY
SeFloat getCentroidY() const
Y coordinate of centroid.
Definition: PixelCentroid.h:53
SourceXtractor::PixelCentroid::PixelCentroid
PixelCentroid(SeFloat centroid_x, SeFloat centroid_y)
Definition: PixelCentroid.h:45
SourceXtractor
Definition: Aperture.h:30
Property.h
SourceXtractor::PixelCentroid::m_centroid_y
SeFloat m_centroid_y
Definition: PixelCentroid.h:58