SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
BenchBackgroundModel Class Reference
Inheritance diagram for BenchBackgroundModel:
Collaboration diagram for BenchBackgroundModel:

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< int > m_cell_size
std::vector< int > m_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

enum class BenchBackgroundModel::Algorithm
strongprivate
Enumerator
SIMPLE 
NG 

Definition at line 65 of file BenchBackgroundModel.cpp.

Constructor & Destructor Documentation

◆ BenchBackgroundModel()

BenchBackgroundModel::BenchBackgroundModel ( )
inline

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 m_algorithm, m_cell_size, m_smooth, m_weight_config, Euclid::make_unique(), 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 std::map< K, T >::at(), std::map< K, T >::end(), std::map< K, T >::find(), and m_detection_config.

Referenced by configure().

Here is the call graph for this function:

◆ mainMethod()

Member Data Documentation

◆ m_algorithm

enum BenchBackgroundModel::Algorithm BenchBackgroundModel::m_algorithm
private

◆ 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

◆ 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

◆ s_algo_map

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

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