SourceXtractorPlusPlus  0.14
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
SeFloat getCentroidY() const
Y coordinate of centroid.
Definition: PixelCentroid.h:53
SeFloat32 SeFloat
Definition: Types.h:32
The centroid of all the pixels in the source, weighted by their DetectionImage pixel values...
Definition: PixelCentroid.h:37
PixelCentroid(SeFloat centroid_x, SeFloat centroid_y)
Definition: PixelCentroid.h:45
Base class for all Properties. (has no actual content)
Definition: Property.h:33
virtual ~PixelCentroid()=default
Destructor.
SeFloat getCentroidX() const
X coordinate of centroid.
Definition: PixelCentroid.h:48