SourceXtractorPlusPlus  0.11
Please provide a description of the project.
Public Member Functions | Private Attributes | List of all members
SourceXtractor::PixelCentroid Class Reference

The centroid of all the pixels in the source, weighted by their DetectionImage pixel values. More...

#include <PixelCentroid.h>

Inheritance diagram for SourceXtractor::PixelCentroid:
[legend]
Collaboration diagram for SourceXtractor::PixelCentroid:
[legend]

Public Member Functions

virtual ~PixelCentroid ()=default
 Destructor. More...
 
 PixelCentroid (SeFloat centroid_x, SeFloat centroid_y)
 
SeFloat getCentroidX () const
 X coordinate of centroid. More...
 
SeFloat getCentroidY () const
 Y coordinate of centroid. More...
 
- Public Member Functions inherited from SourceXtractor::Property
virtual ~Property ()=default
 

Private Attributes

SeFloat m_centroid_x
 
SeFloat m_centroid_y
 

Detailed Description

The centroid of all the pixels in the source, weighted by their DetectionImage pixel values.

Please note that we consider pixels to be centered around their coordinates

Definition at line 37 of file PixelCentroid.h.

Constructor & Destructor Documentation

◆ ~PixelCentroid()

virtual SourceXtractor::PixelCentroid::~PixelCentroid ( )
virtualdefault

Destructor.

◆ PixelCentroid()

SourceXtractor::PixelCentroid::PixelCentroid ( SeFloat  centroid_x,
SeFloat  centroid_y 
)
inline

Definition at line 45 of file PixelCentroid.h.

Member Function Documentation

◆ getCentroidX()

SeFloat SourceXtractor::PixelCentroid::getCentroidX ( ) const
inline

◆ getCentroidY()

SeFloat SourceXtractor::PixelCentroid::getCentroidY ( ) const
inline

Y coordinate of centroid.

Definition at line 53 of file PixelCentroid.h.

References m_centroid_y.

Referenced by SourceXtractor::MoffatCriteria::doesImpact(), and SourceXtractor::LineSelectionCriteria::mustBeProcessed().

Member Data Documentation

◆ m_centroid_x

SeFloat SourceXtractor::PixelCentroid::m_centroid_x
private

Definition at line 58 of file PixelCentroid.h.

Referenced by getCentroidX().

◆ m_centroid_y

SeFloat SourceXtractor::PixelCentroid::m_centroid_y
private

Definition at line 58 of file PixelCentroid.h.

Referenced by getCentroidY().


The documentation for this class was generated from the following file: