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

#include <SE2BackgroundLevelAnalyzer.h>

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

Public Member Functions

 SE2BackgroundLevelAnalyzer (const std::string &cell_size, const std::string &smoothing_box, const WeightImageConfig::WeightType weight_type)
 
virtual ~SE2BackgroundLevelAnalyzer ()=default
 
BackgroundModel analyzeBackground (std::shared_ptr< DetectionImage > image, std::shared_ptr< WeightImage > variance_map, std::shared_ptr< Image< unsigned char >> mask, WeightImage::PixelType variance_threshold) const override
 
- Public Member Functions inherited from SourceXtractor::BackgroundAnalyzer
virtual ~BackgroundAnalyzer ()=default
 
virtual BackgroundModel analyzeBackground (std::shared_ptr< DetectionImage > image, std::shared_ptr< WeightImage > variance_map, std::shared_ptr< Image< unsigned char >> mask, WeightImage::PixelType variance_threshold) const =0
 

Private Member Functions

BackgroundModel fromSE2Modeller (std::shared_ptr< DetectionImage > image, std::shared_ptr< WeightImage > variance_map, std::shared_ptr< Image< unsigned char >> mask, WeightImage::PixelType variance_threshold, SeFloat &bck_median, SeFloat &var_median) const
 
std::vector< int > stringToIntVec (const std::string inString, const std::string delimiters)
 
std::vector< std::stringstringSplit (const std::string inString, const std::string delimiters)
 

Private Attributes

std::vector< int > m_cell_size
 
std::vector< int > m_smoothing_box
 
WeightImageConfig::WeightType m_weight_type
 

Detailed Description

Definition at line 35 of file SE2BackgroundLevelAnalyzer.h.

Constructor & Destructor Documentation

◆ SE2BackgroundLevelAnalyzer()

SourceXtractor::SE2BackgroundLevelAnalyzer::SE2BackgroundLevelAnalyzer ( const std::string cell_size,
const std::string smoothing_box,
const WeightImageConfig::WeightType  weight_type 
)

Definition at line 45 of file SE2BackgroundLevelAnalyzer.cpp.

References m_cell_size, m_smoothing_box, std::vector< T >::push_back(), std::vector< T >::size(), and stringToIntVec().

Here is the call graph for this function:

◆ ~SE2BackgroundLevelAnalyzer()

virtual SourceXtractor::SE2BackgroundLevelAnalyzer::~SE2BackgroundLevelAnalyzer ( )
virtualdefault

Member Function Documentation

◆ analyzeBackground()

BackgroundModel SourceXtractor::SE2BackgroundLevelAnalyzer::analyzeBackground ( std::shared_ptr< DetectionImage image,
std::shared_ptr< WeightImage variance_map,
std::shared_ptr< Image< unsigned char >>  mask,
WeightImage::PixelType  variance_threshold 
) const
override

Definition at line 68 of file SE2BackgroundLevelAnalyzer.cpp.

References SourceXtractor::bck_model_logger, Elements::Logging::debug(), fromSE2Modeller(), Elements::Logging::info(), and std::sqrt().

Here is the call graph for this function:

◆ fromSE2Modeller()

BackgroundModel SourceXtractor::SE2BackgroundLevelAnalyzer::fromSE2Modeller ( std::shared_ptr< DetectionImage image,
std::shared_ptr< WeightImage variance_map,
std::shared_ptr< Image< unsigned char >>  mask,
WeightImage::PixelType  variance_threshold,
SeFloat bck_median,
SeFloat var_median 
) const
private

Definition at line 106 of file SE2BackgroundLevelAnalyzer.cpp.

References SourceXtractor::bck_model_logger, Elements::Logging::debug(), m_cell_size, m_smoothing_box, m_weight_type, and SourceXtractor::WeightImageConfig::WEIGHT_TYPE_NONE.

Referenced by analyzeBackground().

Here is the call graph for this function:

◆ stringSplit()

std::vector< std::string > SourceXtractor::SE2BackgroundLevelAnalyzer::stringSplit ( const std::string  inString,
const std::string  delimiters 
)
private

Definition at line 179 of file SE2BackgroundLevelAnalyzer.cpp.

References std::string::find_first_not_of(), std::string::find_first_of(), std::string::find_last_not_of(), std::next(), std::vector< T >::push_back(), and std::string::substr().

Referenced by stringToIntVec().

Here is the call graph for this function:

◆ stringToIntVec()

std::vector< int > SourceXtractor::SE2BackgroundLevelAnalyzer::stringToIntVec ( const std::string  inString,
const std::string  delimiters 
)
private

Definition at line 147 of file SE2BackgroundLevelAnalyzer.cpp.

References std::vector< T >::push_back(), std::vector< T >::size(), and stringSplit().

Referenced by SE2BackgroundLevelAnalyzer().

Here is the call graph for this function:

Member Data Documentation

◆ m_cell_size

std::vector<int> SourceXtractor::SE2BackgroundLevelAnalyzer::m_cell_size
private

Definition at line 52 of file SE2BackgroundLevelAnalyzer.h.

Referenced by fromSE2Modeller(), and SE2BackgroundLevelAnalyzer().

◆ m_smoothing_box

std::vector<int> SourceXtractor::SE2BackgroundLevelAnalyzer::m_smoothing_box
private

Definition at line 53 of file SE2BackgroundLevelAnalyzer.h.

Referenced by fromSE2Modeller(), and SE2BackgroundLevelAnalyzer().

◆ m_weight_type

WeightImageConfig::WeightType SourceXtractor::SE2BackgroundLevelAnalyzer::m_weight_type
private

Definition at line 55 of file SE2BackgroundLevelAnalyzer.h.

Referenced by fromSE2Modeller().


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