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

#include <MultiThresholdPartitionStep.h>

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

Public Member Functions

 MultiThresholdPartitionStep (std::shared_ptr< SourceFactory > source_factory, SeFloat contrast, unsigned int thresholds_nb, unsigned int min_deblend_area)
 
virtual ~MultiThresholdPartitionStep ()=default
 
virtual std::vector< std::shared_ptr< SourceInterface > > partition (std::shared_ptr< SourceInterface > source) const
 
- Public Member Functions inherited from SourceXtractor::PartitionStep
virtual ~PartitionStep ()=default
 Destructor. More...
 

Private Member Functions

std::vector< std::shared_ptr< SourceInterface > > reassignPixels (const std::vector< std::shared_ptr< SourceInterface >> &sources, const std::vector< PixelCoordinate > &pixel_coords, std::shared_ptr< VectorImage< DetectionImage::PixelType >> image, const std::vector< std::shared_ptr< MultiThresholdNode >> &source_nodes, const PixelCoordinate &offset) const
 

Private Attributes

std::shared_ptr< SourceFactorym_source_factory
 
SeFloat m_contrast
 
unsigned int m_thresholds_nb
 
unsigned int m_min_deblend_area
 

Detailed Description

Definition at line 46 of file MultiThresholdPartitionStep.h.

Constructor & Destructor Documentation

◆ MultiThresholdPartitionStep()

SourceXtractor::MultiThresholdPartitionStep::MultiThresholdPartitionStep ( std::shared_ptr< SourceFactory source_factory,
SeFloat  contrast,
unsigned int  thresholds_nb,
unsigned int  min_deblend_area 
)
inline

Definition at line 50 of file MultiThresholdPartitionStep.h.

◆ ~MultiThresholdPartitionStep()

virtual SourceXtractor::MultiThresholdPartitionStep::~MultiThresholdPartitionStep ( )
virtualdefault

Member Function Documentation

◆ partition()

std::vector< std::shared_ptr< SourceInterface > > SourceXtractor::MultiThresholdPartitionStep::partition ( std::shared_ptr< SourceInterface source) const
virtual

◆ reassignPixels()

std::vector< std::shared_ptr< SourceInterface > > SourceXtractor::MultiThresholdPartitionStep::reassignPixels ( const std::vector< std::shared_ptr< SourceInterface >> &  sources,
const std::vector< PixelCoordinate > &  pixel_coords,
std::shared_ptr< VectorImage< DetectionImage::PixelType >>  image,
const std::vector< std::shared_ptr< MultiThresholdNode >> &  source_nodes,
const PixelCoordinate offset 
) const
private

Definition at line 246 of file MultiThresholdPartitionStep.cpp.

References std::vector< T >::back(), dx, dy, std::endl(), SourceXtractor::ShapeParameters::getAbcor(), m_source_factory, std::numeric_limits::max(), std::vector< T >::push_back(), std::rand(), and std::vector< T >::size().

Referenced by partition().

Here is the call graph for this function:

Member Data Documentation

◆ m_contrast

SeFloat SourceXtractor::MultiThresholdPartitionStep::m_contrast
private

Definition at line 68 of file MultiThresholdPartitionStep.h.

Referenced by partition().

◆ m_min_deblend_area

unsigned int SourceXtractor::MultiThresholdPartitionStep::m_min_deblend_area
private

Definition at line 70 of file MultiThresholdPartitionStep.h.

Referenced by partition().

◆ m_source_factory

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

Definition at line 67 of file MultiThresholdPartitionStep.h.

Referenced by partition(), and reassignPixels().

◆ m_thresholds_nb

unsigned int SourceXtractor::MultiThresholdPartitionStep::m_thresholds_nb
private

Definition at line 69 of file MultiThresholdPartitionStep.h.

Referenced by partition().


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