28 namespace po = boost::program_options;
36 SE2BackgroundConfig::SE2BackgroundConfig(
long manager_id) :
37 Configuration(manager_id), m_cell_size(), m_smoothing_box(), m_legacy(false) {
41 return { {
"Background modelling", {
43 "Background mesh cell size to determine a value."},
45 "Background median filter size"},
47 "Use the legacy implementation"}
56 m_cell_size = Euclid::stringToVector<int>(cell_size_str);
62 auto less_eq_0 = [](
int v) {
return v <= 0; };
63 auto less_0 = [](
int v) {
return v < 0; };
66 throw Elements::Exception() <<
"There are value(s) < 1 in backgound-cell-size: " << cell_size_str;
69 throw Elements::Exception() <<
"There are value(s) < 0 in smoothing-box-size: " << smoothing_box_str;