SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
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
29namespace SourceXtractor {
30
37class PixelCentroid : public Property {
38public:
39
43 virtual ~PixelCentroid() = default;
44
46
49 return m_centroid_x;
50 }
51
54 return m_centroid_y;
55 }
56
57private:
59
60}; /* End of PixelCentroid class */
61
62} /* namespace SourceXtractor */
63
64
65#endif
The centroid of all the pixels in the source, weighted by their DetectionImage pixel values.
SeFloat getCentroidX() const
X coordinate of centroid.
virtual ~PixelCentroid()=default
Destructor.
SeFloat getCentroidY() const
Y coordinate of centroid.
PixelCentroid(SeFloat centroid_x, SeFloat centroid_y)
Base class for all Properties. (has no actual content)
Definition Property.h:33