29namespace po = boost::program_options;
44 return { {
"Background modelling", {
46 "Background mesh cell size to determine a value."},
48 "Background median filter size"},
50 "Deprecated, kept for compatibility"}
59 m_cell_size = Euclid::stringToVector<int>(cell_size_str);
65 auto less_eq_0 = [](
int v) {
return v <= 0; };
66 auto less_0 = [](
int v) {
return v < 0; };
69 throw Elements::Exception() <<
"There are value(s) < 1 in backgound-cell-size: " << cell_size_str;
72 throw Elements::Exception() <<
"There are value(s) < 0 in smoothing-box-size: " << smoothing_box_str;
75 logger.warn() <<
"The option "
76 <<
LEGACY_BACKGROUND <<
" is deprecated and has no effect starting at version 0.17";
static Logging getLogger(const std::string &name="")