Zivid
1.0.0+3593.8aa835e3
Zivid API
|
Toggle on or off various filters More...
#include <Settings.h>
Classes | |
class | Contrast |
Discard points with low contrast values More... | |
class | Outlier |
Outlier filter based on connected components More... | |
class | Reflection |
Detect and remove points likely to arise from reflections (useful for shiny materials) More... | |
class | Saturated |
Discard pixels that are saturated in the image More... | |
Public Member Functions | |
Filters (const std::string &fileName) | |
Construct object by loading from file 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... | |
Filters & | set (const Contrast &value) |
Set Contrast More... | |
const Contrast & | contrast () const |
Get Contrast More... | |
Filters & | set (const Contrast::Threshold &value) |
Set Contrast::Threshold More... | |
Filters & | set (const Outlier &value) |
Set Outlier More... | |
const Outlier & | outlier () const |
Get Outlier More... | |
Filters & | set (const Outlier::Enabled &value) |
Set Outlier::Enabled More... | |
Filters & | set (const Outlier::Threshold &value) |
Set Outlier::Threshold More... | |
Filters & | set (const Saturated &value) |
Set Saturated More... | |
const Saturated & | saturated () const |
Get Saturated More... | |
Filters & | set (const Saturated::Enabled &value) |
Set Saturated::Enabled More... | |
Filters & | set (const Reflection &value) |
Set Reflection More... | |
const Reflection & | reflection () const |
Get Reflection More... | |
Filters & | set (const Reflection::Enabled &value) |
Set Reflection::Enabled 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 | save (const std::string &fileName) const |
Save to the given file More... | |
void | setFromString (const std::string &value) |
Set from the given string More... | |
void | load (const std::string &fileName) |
Load from the given file More... | |
bool | operator== (const Filters &other) const |
Equality operator More... | |
bool | operator!= (const Filters &other) const |
Inequality operator More... | |
Static Public Attributes | |
static constexpr bool | isContainer {true} |
Whether this node contains child values More... | |
static constexpr const char * | path {"Filters"} |
The full path for this value More... | |
static constexpr const char * | name {"Filters"} |
The name of this value More... | |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const Filters &value) |
Operator to send the value as string to a stream More... | |
std::istream & | operator>> (std::istream &stream, Filters &value) |
Operator to set the value from a stream More... | |
Toggle on or off various filters
|
explicit |
Construct object by loading from file
|
inline |
Run the given function on each direct member with the value of the member as parameter
|
inline |
Run the given function on each direct member with the value of the member as parameter
std::string Zivid::Settings::Filters::getString | ( | const std::string & | fullPath | ) | const |
Get a value as string by specifying the path
void Zivid::Settings::Filters::load | ( | const std::string & | fileName | ) |
Load from the given file
bool Zivid::Settings::Filters::operator!= | ( | const Filters & | other | ) | const |
Inequality operator
bool Zivid::Settings::Filters::operator== | ( | const Filters & | other | ) | const |
Equality operator
|
inline |
Get Reflection
void Zivid::Settings::Filters::save | ( | const std::string & | fileName | ) | const |
Save to the given file
void Zivid::Settings::Filters::set | ( | const std::string & | fullPath, |
const std::string & | value | ||
) |
Set a value from string by specifying the path
|
inline |
|
inline |
Set Outlier::Enabled
|
inline |
|
inline |
|
inline |
Set Reflection
|
inline |
void Zivid::Settings::Filters::setFromString | ( | const std::string & | value | ) |
Set from the given string
std::string Zivid::Settings::Filters::toString | ( | ) | const |
Get the value as string
|
inline |
Traverse the entire tree using the given function with the value of the member as parameter
|
inline |
Traverse all members using the given function with the value of the member as parameter
|
friend |
Operator to send the value as string to a stream
|
friend |
Operator to set the value from a stream
|
static |
Whether this node contains child values
|
static |
The name of this value
|
static |
The full path for this value