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

Groups sources if their Moffat profile overlap. More...

#include <MoffatCriteria.h>

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

Public Member Functions

 MoffatCriteria (double threshold, double max_distance)
 
virtual ~MoffatCriteria ()
 
virtual bool shouldGroup (const SourceInterface &, const SourceInterface &) const override
 Determines if the two sources should be grouped together. More...
 
- Public Member Functions inherited from SourceXtractor::GroupingCriteria
virtual ~GroupingCriteria ()=default
 Destructor. More...
 

Private Member Functions

bool doesImpact (const SourceInterface &impactor, const SourceInterface &impactee) const
 

Private Attributes

double m_threshold
 
double m_max_distance
 

Detailed Description

Groups sources if their Moffat profile overlap.

Definition at line 39 of file MoffatCriteria.h.

Constructor & Destructor Documentation

◆ MoffatCriteria()

SourceXtractor::MoffatCriteria::MoffatCriteria ( double  threshold,
double  max_distance 
)
inline

Definition at line 42 of file MoffatCriteria.h.

◆ ~MoffatCriteria()

virtual SourceXtractor::MoffatCriteria::~MoffatCriteria ( )
inlinevirtual

Definition at line 43 of file MoffatCriteria.h.

Member Function Documentation

◆ doesImpact()

bool SourceXtractor::MoffatCriteria::doesImpact ( const SourceInterface impactor,
const SourceInterface impactee 
) const
private

Definition at line 35 of file MoffatCriteria.cpp.

References dx, dy, SourceXtractor::PixelCentroid::getCentroidX(), SourceXtractor::PixelCentroid::getCentroidY(), and SourceXtractor::SourceInterface::getProperty().

Here is the call graph for this function:

◆ shouldGroup()

bool SourceXtractor::MoffatCriteria::shouldGroup ( const SourceInterface first,
const SourceInterface second 
) const
overridevirtual

Determines if the two sources should be grouped together.

Implements SourceXtractor::GroupingCriteria.

Definition at line 57 of file MoffatCriteria.cpp.

References second.

Member Data Documentation

◆ m_max_distance

double SourceXtractor::MoffatCriteria::m_max_distance
private

Definition at line 51 of file MoffatCriteria.h.

◆ m_threshold

double SourceXtractor::MoffatCriteria::m_threshold
private

Definition at line 50 of file MoffatCriteria.h.


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