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

Public Member Functions

po::options_description defineSpecificProgramOptions () override
std::shared_ptr< VectorImage< SeFloat > > generateImage (int size)
Elements::ExitCode mainMethod (std::map< std::string, po::variable_value > &args) override
template<typename BackgroundConvolution>
std::shared_ptr< VectorImage< SeFloat > > benchmark (std::shared_ptr< VectorImage< SeFloat > > &image, std::shared_ptr< VectorImage< SeFloat > > &variance, std::shared_ptr< VectorImage< SeFloat > > &kernel, int repeat, int measures)
void verifyResults (std::shared_ptr< VectorImage< SeFloat > > a, std::shared_ptr< VectorImage< SeFloat > > b)
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 Attributes

std::default_random_engine random_generator
std::uniform_real_distribution< SeFloatrandom_dist {0, 1}

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

Definition at line 50 of file BenchBackgroundConvolution.cpp.

Member Function Documentation

◆ benchmark()

template<typename BackgroundConvolution>
std::shared_ptr< VectorImage< SeFloat > > BenchBackgroundConvolution::benchmark ( std::shared_ptr< VectorImage< SeFloat > > & image,
std::shared_ptr< VectorImage< SeFloat > > & variance,
std::shared_ptr< VectorImage< SeFloat > > & kernel,
int repeat,
int measures )
inline

Definition at line 123 of file BenchBackgroundConvolution.cpp.

References std::dynamic_pointer_cast(), std::endl(), Euclid::Configuration::logger, and std::make_shared().

Referenced by mainMethod().

Here is the call graph for this function:

◆ defineSpecificProgramOptions()

po::options_description BenchBackgroundConvolution::defineSpecificProgramOptions ( )
inlineoverridevirtual

Reimplemented from Elements::Program.

Definition at line 57 of file BenchBackgroundConvolution.cpp.

◆ generateImage()

std::shared_ptr< VectorImage< SeFloat > > BenchBackgroundConvolution::generateImage ( int size)
inline

Definition at line 71 of file BenchBackgroundConvolution.cpp.

References SourceXtractor::VectorImage< T >::create(), random_dist, and random_generator.

Referenced by mainMethod().

Here is the call graph for this function:

◆ mainMethod()

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

Definition at line 81 of file BenchBackgroundConvolution.cpp.

References benchmark(), std::endl(), generateImage(), Euclid::Configuration::logger, Elements::OK, and verifyResults().

Here is the call graph for this function:

◆ verifyResults()

void BenchBackgroundConvolution::verifyResults ( std::shared_ptr< VectorImage< SeFloat > > a,
std::shared_ptr< VectorImage< SeFloat > > b )
inline

Definition at line 151 of file BenchBackgroundConvolution.cpp.

References SourceXtractor::isClose(), and Euclid::Configuration::logger.

Referenced by mainMethod().

Here is the call graph for this function:

Member Data Documentation

◆ random_dist

std::uniform_real_distribution<SeFloat> BenchBackgroundConvolution::random_dist {0, 1}
private

Definition at line 53 of file BenchBackgroundConvolution.cpp.

Referenced by generateImage().

◆ random_generator

std::default_random_engine BenchBackgroundConvolution::random_generator
private

Definition at line 52 of file BenchBackgroundConvolution.cpp.

Referenced by generateImage().


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