SourceXtractorPlusPlus  0.12
Please provide a description of the project.
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
BenchBackgroundModel Class Reference
Inheritance diagram for BenchBackgroundModel:
[legend]
Collaboration diagram for BenchBackgroundModel:
[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< boost::program_options::options_description, boost::program_options::positional_options_description > defineProgramArguments ()
 
virtual ExitCode mainMethod (std::map< std::string, boost::program_options::variable_value > &args)=0
 

Private Types

enum  Algorithm { Algorithm::SIMPLE, Algorithm::SE2, Algorithm::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
 

Detailed Description

Run the background modeling over an image, timing it

Definition at line 58 of file BenchBackgroundModel.cpp.

Member Enumeration Documentation

◆ Algorithm

enum BenchBackgroundModel::Algorithm
strongprivate
Enumerator
SIMPLE 
SE2 
NG 

Definition at line 66 of file BenchBackgroundModel.cpp.

Constructor & Destructor Documentation

◆ BenchBackgroundModel()

BenchBackgroundModel::BenchBackgroundModel ( )
inline

Definition at line 109 of file BenchBackgroundModel.cpp.

Member Function Documentation

◆ configure()

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

Definition at line 135 of file BenchBackgroundModel.cpp.

References std::map< K, T >::at(), config_manager_id, and Euclid::Configuration::ConfigManager::getInstance().

Here is the call graph for this function:

◆ defineSpecificProgramOptions()

po::options_description BenchBackgroundModel::defineSpecificProgramOptions ( )
inlineoverridevirtual

Reimplemented from Elements::Program.

Definition at line 113 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 96 of file BenchBackgroundModel.cpp.

References SourceXtractor::WeightImageConfig::getWeightType().

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 79 of file BenchBackgroundModel.cpp.

References std::map< K, T >::at(), std::map< K, T >::end(), std::map< K, T >::find(), and SourceXtractor::DetectionImageConfig::getDetectionImagePath().

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

◆ m_cell_size

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

Definition at line 64 of file BenchBackgroundModel.cpp.

◆ m_detection_config

DetectionImageConfig BenchBackgroundModel::m_detection_config
private

Definition at line 60 of file BenchBackgroundModel.cpp.

◆ m_output_bg

std::string BenchBackgroundModel::m_output_bg
private

Definition at line 63 of file BenchBackgroundModel.cpp.

◆ m_output_var

std::string BenchBackgroundModel::m_output_var
private

Definition at line 63 of file BenchBackgroundModel.cpp.

◆ m_smooth

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

Definition at line 64 of file BenchBackgroundModel.cpp.

◆ m_weight_config

WeightImageConfig BenchBackgroundModel::m_weight_config
private

Definition at line 61 of file BenchBackgroundModel.cpp.

◆ s_algo_map

std::map<std::string, Algorithm> BenchBackgroundModel::s_algo_map
private
Initial value:
{
{"simple", Algorithm::SIMPLE},
{"se2", Algorithm::SE2},
{"ng", Algorithm::NG}
}

Definition at line 70 of file BenchBackgroundModel.cpp.


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