SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SourceXtractor::Cleaning Class Reference

#include <Cleaning.h>

Inheritance diagram for SourceXtractor::Cleaning:
Inheritance graph
[legend]
Collaboration diagram for SourceXtractor::Cleaning:
Collaboration graph
[legend]

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.

◆ ~Cleaning()

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

Definition at line 42 of file Cleaning.h.

Member Function Documentation

◆ deblend()

void SourceXtractor::Cleaning::deblend ( SourceGroupInterface & group) const
overridevirtual

Performs the DeblendStep on the SourceGroup.

Implements SourceXtractor::DeblendStep.

Definition at line 45 of file Cleaning.cpp.

References findMostInfluentialSource(), mergeSources(), std::move(), and shouldClean().

Here is the call graph for this function:

◆ findMostInfluentialSource()

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

Definition at line 120 of file Cleaning.cpp.

Referenced by deblend().

◆ mergeSources()

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

Definition at line 147 of file Cleaning.cpp.

References m_source_factory.

Referenced by deblend().

◆ 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.

◆ shouldClean()

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

Definition at line 89 of file Cleaning.cpp.

References m_min_area.

Referenced by deblend().

Member Data Documentation

◆ m_min_area

unsigned int SourceXtractor::Cleaning::m_min_area
private

Definition at line 57 of file Cleaning.h.

Referenced by shouldClean().

◆ m_source_factory

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

Definition at line 56 of file Cleaning.h.

Referenced by mergeSources().


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