SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
BenchBackgroundModel Class Reference
Inheritance diagram for BenchBackgroundModel:
Inheritance graph
[legend]
Collaboration diagram for BenchBackgroundModel:
Collaboration graph
[legend]

Public Member Functions

 BenchBackgroundModel ()
 
po::options_description defineSpecificProgramOptions () override
 
void configure (const std::map< std::string, po::variable_value > &args)
 
Elements::ExitCode mainMethod (std::map< std::string, po::variable_value > &args) override
 
- Public Member Functions inherited from Elements::Program
 Program ()=default
 
virtual ~Program ()
 
virtual std::pair< OptionsDescription, PositionalOptionsDescriptiondefineProgramArguments ()
 
virtual ExitCode mainMethod (std::map< std::string, VariableValue > &args)=0
 

Private Types

enum class  Algorithm { SIMPLE , NG }
 

Private Member Functions

std::string getOutputPath (const std::map< std::string, po::variable_value > &args, const std::string &var, const std::string &default_suffix)
 
std::unique_ptr< BackgroundAnalyzergetBackgroundAnalyzer ()
 

Private Attributes

DetectionImageConfig m_detection_config
 
WeightImageConfig m_weight_config
 
std::string m_output_bg
 
std::string m_output_var
 
std::vector< intm_cell_size
 
std::vector< intm_smooth
 
enum BenchBackgroundModel::Algorithm m_algorithm
 
std::map< std::string, Algorithms_algo_map
 

Additional Inherited Members

- Public Types inherited from Elements::Program
typedef boost::program_options::options_description options_description
 
typedef boost::program_options::positional_options_description positional_options_description
 
typedef boost::program_options::variable_value variable_value
 
typedef boost::program_options::variables_map variables_map
 
typedef options_description OptionsDescription
 
typedef positional_options_description PositionalOptionsDescription
 
typedef variable_value VariableValue
 
typedef variables_map VariablesMap
 
typedef Elements::ExitCode ExitCode
 
typedef Elements::Logging Logging
 

Detailed Description

Run the background modeling over an image, timing it

Definition at line 57 of file BenchBackgroundModel.cpp.

Member Enumeration Documentation

◆ Algorithm

Enumerator
SIMPLE 
NG 

Definition at line 65 of file BenchBackgroundModel.cpp.

Constructor & Destructor Documentation

◆ BenchBackgroundModel()

BenchBackgroundModel::BenchBackgroundModel ( )
inline

Definition at line 105 of file BenchBackgroundModel.cpp.

Member Function Documentation

◆ configure()

void BenchBackgroundModel::configure ( const std::map< std::string, po::variable_value > & args)
inline

◆ defineSpecificProgramOptions()

po::options_description BenchBackgroundModel::defineSpecificProgramOptions ( )
inlineoverridevirtual

Reimplemented from Elements::Program.

Definition at line 109 of file BenchBackgroundModel.cpp.

References config_manager_id, and Euclid::Configuration::ConfigManager::getInstance().

Here is the call graph for this function:

◆ getBackgroundAnalyzer()

std::unique_ptr< BackgroundAnalyzer > BenchBackgroundModel::getBackgroundAnalyzer ( )
inlineprivate

Definition at line 94 of file BenchBackgroundModel.cpp.

References SourceXtractor::WeightImageConfig::getWeightType(), m_algorithm, m_cell_size, m_smooth, m_weight_config, NG, and SIMPLE.

Referenced by mainMethod().

Here is the call graph for this function:

◆ getOutputPath()

std::string BenchBackgroundModel::getOutputPath ( const std::map< std::string, po::variable_value > & args,
const std::string & var,
const std::string & default_suffix )
inlineprivate

Get an output path from the input arguments, if defined. Generate a default otherwise.

Definition at line 77 of file BenchBackgroundModel.cpp.

References SourceXtractor::DetectionImageConfig::getDetectionImagePath(), and m_detection_config.

Referenced by configure().

Here is the call graph for this function:

◆ mainMethod()

Elements::ExitCode BenchBackgroundModel::mainMethod ( std::map< std::string, po::variable_value > & args)
inlineoverride

Member Data Documentation

◆ m_algorithm

enum BenchBackgroundModel::Algorithm BenchBackgroundModel::m_algorithm
private

Referenced by configure(), and getBackgroundAnalyzer().

◆ m_cell_size

std::vector<int> BenchBackgroundModel::m_cell_size
private

Definition at line 63 of file BenchBackgroundModel.cpp.

Referenced by configure(), and getBackgroundAnalyzer().

◆ m_detection_config

DetectionImageConfig BenchBackgroundModel::m_detection_config
private

Definition at line 59 of file BenchBackgroundModel.cpp.

Referenced by configure(), getOutputPath(), and mainMethod().

◆ m_output_bg

std::string BenchBackgroundModel::m_output_bg
private

Definition at line 62 of file BenchBackgroundModel.cpp.

Referenced by configure(), and mainMethod().

◆ m_output_var

std::string BenchBackgroundModel::m_output_var
private

Definition at line 62 of file BenchBackgroundModel.cpp.

Referenced by configure(), and mainMethod().

◆ m_smooth

std::vector<int> BenchBackgroundModel::m_smooth
private

Definition at line 63 of file BenchBackgroundModel.cpp.

Referenced by configure(), and getBackgroundAnalyzer().

◆ m_weight_config

WeightImageConfig BenchBackgroundModel::m_weight_config
private

Definition at line 60 of file BenchBackgroundModel.cpp.

Referenced by configure(), getBackgroundAnalyzer(), and mainMethod().

◆ s_algo_map

std::map<std::string, Algorithm> BenchBackgroundModel::s_algo_map
private
Initial value:

Definition at line 69 of file BenchBackgroundModel.cpp.

Referenced by configure().


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