Discard points with contrast values below a threshold
More...
#include <Zivid/Settings.h>
|
| Contrast ()=default |
| Default constructor More...
|
|
void | set (const std::string &fullPath, const std::string &value) |
| Set a value from string by specifying the path More...
|
|
std::string | getString (const std::string &fullPath) const |
| Get a value as string by specifying the path More...
|
|
template<typename T , typename std::enable_if< std::is_same< T, Settings::Filters::Contrast::Enabled >::value, int >::type = 0> |
const Settings::Filters::Contrast::Enabled & | get () const |
|
template<typename T , typename std::enable_if< std::is_same< T, Settings::Filters::Contrast::Threshold >::value, int >::type = 0> |
const Settings::Filters::Contrast::Threshold & | get () const |
|
template<size_t i, typename std::enable_if< i==0, int >::type = 0> |
const Settings::Filters::Contrast::Enabled & | get () const |
|
template<size_t i, typename std::enable_if< i==1, int >::type = 0> |
const Settings::Filters::Contrast::Threshold & | get () const |
|
| Contrast (const Enabled &enabled, const Threshold &threshold) |
| Constructor More...
|
|
Contrast & | set (const Enabled &value) |
| Set Enabled More...
|
|
const Enabled & | isEnabled () const |
| Get Enabled More...
|
|
Contrast & | set (const Threshold &value) |
| Set Threshold More...
|
|
const Threshold & | threshold () const |
| Get Threshold More...
|
|
template<typename F > |
void | forEach (const F &f) const |
| Run the given function on each direct member with the value of the member as parameter More...
|
|
template<typename F > |
void | forEach (const F &f) |
| Run the given function on each direct member with the value of the member as parameter More...
|
|
template<typename F > |
void | traverseValues (const F &f) const |
| Traverse the entire tree using the given function with the value of the member as parameter More...
|
|
template<typename F > |
void | traverseValues (const F &f) |
| Traverse all members using the given function with the value of the member as parameter More...
|
|
std::string | toString () const |
| Get the value as string More...
|
|
void | setFromString (const std::string &value) |
| Set from the given string More...
|
|
bool | operator== (const Contrast &other) const |
| Equality operator More...
|
|
bool | operator!= (const Contrast &other) const |
| Inequality operator More...
|
|
|
static constexpr bool | isContainer { true } |
| Whether this node contains child values More...
|
|
static constexpr const char * | path { "Filters/Contrast" } |
| The full path for this value More...
|
|
static constexpr const char * | name { "Contrast" } |
| The name of this value More...
|
|
static constexpr const char * | description |
| The description for this value More...
|
|
Discard points with contrast values below a threshold
◆ Contrast() [1/2]
Zivid::Settings::Filters::Contrast::Contrast |
( |
| ) |
|
|
default |
◆ Contrast() [2/2]
Zivid::Settings::Filters::Contrast::Contrast |
( |
const Enabled & |
enabled, |
|
|
const Threshold & |
threshold |
|
) |
| |
|
explicit |
◆ forEach() [1/2]
template<typename F >
void Zivid::Settings::Filters::Contrast::forEach |
( |
const F & |
f | ) |
|
|
inline |
Run the given function on each direct member with the value of the member as parameter
◆ forEach() [2/2]
template<typename F >
void Zivid::Settings::Filters::Contrast::forEach |
( |
const F & |
f | ) |
const |
|
inline |
Run the given function on each direct member with the value of the member as parameter
◆ get() [1/4]
template<typename T , typename std::enable_if< std::is_same< T, Settings::Filters::Contrast::Enabled >::value, int >::type = 0>
◆ get() [2/4]
template<typename T , typename std::enable_if< std::is_same< T, Settings::Filters::Contrast::Threshold >::value, int >::type = 0>
◆ get() [3/4]
template<size_t i, typename std::enable_if< i==0, int >::type = 0>
◆ get() [4/4]
template<size_t i, typename std::enable_if< i==1, int >::type = 0>
◆ getString()
std::string Zivid::Settings::Filters::Contrast::getString |
( |
const std::string & |
fullPath | ) |
const |
Get a value as string by specifying the path
◆ isEnabled()
const Enabled& Zivid::Settings::Filters::Contrast::isEnabled |
( |
| ) |
const |
|
inline |
◆ operator!=()
bool Zivid::Settings::Filters::Contrast::operator!= |
( |
const Contrast & |
other | ) |
const |
◆ operator==()
bool Zivid::Settings::Filters::Contrast::operator== |
( |
const Contrast & |
other | ) |
const |
◆ set() [1/3]
◆ set() [2/3]
void Zivid::Settings::Filters::Contrast::set |
( |
const std::string & |
fullPath, |
|
|
const std::string & |
value |
|
) |
| |
Set a value from string by specifying the path
◆ set() [3/3]
◆ setFromString()
void Zivid::Settings::Filters::Contrast::setFromString |
( |
const std::string & |
value | ) |
|
Set from the given string
◆ threshold()
const Threshold& Zivid::Settings::Filters::Contrast::threshold |
( |
| ) |
const |
|
inline |
◆ toString()
std::string Zivid::Settings::Filters::Contrast::toString |
( |
| ) |
const |
◆ traverseValues() [1/2]
template<typename F >
void Zivid::Settings::Filters::Contrast::traverseValues |
( |
const F & |
f | ) |
|
|
inline |
Traverse all members using the given function with the value of the member as parameter
◆ traverseValues() [2/2]
template<typename F >
void Zivid::Settings::Filters::Contrast::traverseValues |
( |
const F & |
f | ) |
const |
|
inline |
Traverse the entire tree using the given function with the value of the member as parameter
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
stream, |
|
|
const Contrast & |
value |
|
) |
| |
|
friend |
Operator to send the value as string to a stream
◆ operator>>
std::istream& operator>> |
( |
std::istream & |
stream, |
|
|
Contrast & |
value |
|
) |
| |
|
friend |
Operator to set the value from a stream
◆ description
constexpr const char* Zivid::Settings::Filters::Contrast::description |
|
staticconstexpr |
Initial value:{
R"description(Discard points with contrast values below a threshold)description"
}
The description for this value
◆ isContainer
constexpr bool Zivid::Settings::Filters::Contrast::isContainer { true } |
|
staticconstexpr |
Whether this node contains child values
◆ name
constexpr const char* Zivid::Settings::Filters::Contrast::name { "Contrast" } |
|
staticconstexpr |
◆ path
constexpr const char* Zivid::Settings::Filters::Contrast::path { "Filters/Contrast" } |
|
staticconstexpr |
The full path for this value
The documentation for this class was generated from the following file: