SourceXtractorPlusPlus
0.8
Please provide a description of the project.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
SEImplementation
src
lib
Configuration
SE2BackgroundConfig.cpp
Go to the documentation of this file.
1
17
/*
18
* @file BackgroundConfig.cpp
19
* @author nikoapos
20
*/
21
22
#include "
SEFramework/Image/ProcessedImage.h
"
23
#include "
SEImplementation/Configuration/SE2BackgroundConfig.h
"
24
25
using namespace
Euclid::Configuration;
26
namespace
po = boost::program_options;
27
28
namespace
SourceXtractor {
29
30
static
const
std::string
CELLSIZE_VALUE
{
"background-cell-size"
};
31
static
const
std::string
SMOOTHINGBOX_VALUE
{
"smoothing-box-size"
};
32
33
SE2BackgroundConfig::SE2BackgroundConfig(
long
manager_id) :
34
Configuration
(manager_id),
35
m_cell_size(),
36
m_smoothing_box() {
37
}
38
39
std::map<std::string, Configuration::OptionDescriptionList>
SE2BackgroundConfig::getProgramOptions
() {
40
return
{ {
"Background modelling"
, {
41
{
CELLSIZE_VALUE
.
c_str
(), po::value<std::string>()->default_value(
std::string
(
"64"
)),
42
"Background mesh cell size to determine a value."
},
43
{
SMOOTHINGBOX_VALUE
.
c_str
(), po::value<std::string>()->default_value(
std::string
(
"3"
)),
44
"Background median filter size"
},
45
}}};
46
}
47
48
void
SE2BackgroundConfig::initialize
(
const
UserValues& args) {
49
if
(args.find(
CELLSIZE_VALUE
) != args.end()) {
50
m_cell_size
= args.
find
(
CELLSIZE_VALUE
)->second.as<
std::string
>();
51
}
52
if
(args.find(
SMOOTHINGBOX_VALUE
) != args.end()) {
53
m_smoothing_box
= args.
find
(
SMOOTHINGBOX_VALUE
)->second.as<
std::string
>();
54
}
55
}
56
57
}
// SourceXtractor namespace
Euclid::Configuration::Configuration
SourceXtractor::CELLSIZE_VALUE
static const std::string CELLSIZE_VALUE
Definition:
SE2BackgroundConfig.cpp:30
SourceXtractor::SE2BackgroundConfig::m_smoothing_box
std::string m_smoothing_box
Definition:
SE2BackgroundConfig.h:52
SourceXtractor::SMOOTHINGBOX_VALUE
static const std::string SMOOTHINGBOX_VALUE
Definition:
SE2BackgroundConfig.cpp:31
SE2BackgroundConfig.h
std::map
STL class.
std::string
STL class.
ProcessedImage.h
SourceXtractor::SE2BackgroundConfig::getProgramOptions
std::map< std::string, Configuration::OptionDescriptionList > getProgramOptions() override
Definition:
SE2BackgroundConfig.cpp:39
std::string::find
T find(T...args)
std::string::c_str
T c_str(T...args)
SourceXtractor::SE2BackgroundConfig::initialize
void initialize(const UserValues &args) override
Definition:
SE2BackgroundConfig.cpp:48
SourceXtractor::SE2BackgroundConfig::m_cell_size
std::string m_cell_size
Definition:
SE2BackgroundConfig.h:51
Generated by
1.8.5