SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SourceXtractor::Cleaning Class Reference

#include <Cleaning.h>

Inheritance diagram for SourceXtractor::Cleaning:
Collaboration diagram for SourceXtractor::Cleaning:

Public Member Functions

 Cleaning (std::shared_ptr< SourceFactory > source_factory, unsigned int min_area)
virtual ~Cleaning ()
void deblend (SourceGroupInterface &group) const override
 Performs the DeblendStep on the SourceGroup.
std::set< PropertyIdrequiredProperties () const override
 Returns properties used by the deblend step.
Public Member Functions inherited from SourceXtractor::DeblendStep
virtual ~DeblendStep ()=default
 Destructor.

Private Member Functions

bool shouldClean (SourceInterface &source, SourceGroupInterface &group) const
SourceGroupInterface::iterator findMostInfluentialSource (SourceInterface &source, const std::vector< SourceGroupInterface::iterator > &candidates) const
std::unique_ptr< SourceInterfacemergeSources (SourceInterface &parent, const std::vector< SourceGroupInterface::iterator > children) const

Private Attributes

std::shared_ptr< SourceFactorym_source_factory
unsigned int m_min_area

Detailed Description

Definition at line 37 of file Cleaning.h.

Constructor & Destructor Documentation

◆ Cleaning()

SourceXtractor::Cleaning::Cleaning ( std::shared_ptr< SourceFactory > source_factory,
unsigned int min_area )
inline

Definition at line 40 of file Cleaning.h.

References m_min_area, and m_source_factory.

◆ ~Cleaning()

virtual SourceXtractor::Cleaning::~Cleaning ( )
inlinevirtual

Definition at line 42 of file Cleaning.h.

Member Function Documentation

◆ deblend()

◆ findMostInfluentialSource()

SourceGroupInterface::iterator SourceXtractor::Cleaning::findMostInfluentialSource ( SourceInterface & source,
const std::vector< SourceGroupInterface::iterator > & candidates ) const
private

Definition at line 120 of file Cleaning.cpp.

References SourceXtractor::SourceInterface::getProperty(), and std::vector< T >::size().

Referenced by deblend().

Here is the call graph for this function:

◆ mergeSources()

std::unique_ptr< SourceInterface > SourceXtractor::Cleaning::mergeSources ( SourceInterface & parent,
const std::vector< SourceGroupInterface::iterator > children ) const
private

◆ requiredProperties()

std::set< PropertyId > SourceXtractor::Cleaning::requiredProperties ( ) const
overridevirtual

Returns properties used by the deblend step.

Reimplemented from SourceXtractor::DeblendStep.

Definition at line 168 of file Cleaning.cpp.

References SourceXtractor::PropertyId::create().

Here is the call graph for this function:

◆ shouldClean()

bool SourceXtractor::Cleaning::shouldClean ( SourceInterface & source,
SourceGroupInterface & group ) const
private

Definition at line 89 of file Cleaning.cpp.

References SourceXtractor::SourceGroupInterface::begin(), SourceXtractor::SourceGroupInterface::end(), SourceXtractor::SourceInterface::getProperty(), and m_min_area.

Referenced by deblend().

Here is the call graph for this function:

Member Data Documentation

◆ m_min_area

unsigned int SourceXtractor::Cleaning::m_min_area
private

Definition at line 57 of file Cleaning.h.

Referenced by Cleaning(), and shouldClean().

◆ m_source_factory

std::shared_ptr<SourceFactory> SourceXtractor::Cleaning::m_source_factory
private

Definition at line 56 of file Cleaning.h.

Referenced by Cleaning(), and mergeSources().


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