JeVois
1.22
JeVois Smart Embedded Machine Vision Toolkit
|
|
Functions | |
template<typename T > | |
void | jevois::paramValToString (T const &val, std::string &result) |
Machine-readable conversion of T to a string, for use in jevois::Parameter. | |
template<> | |
void | jevois::paramValToString< unsigned char > (unsigned char const &val, std::string &result) |
Machine-readable conversion of T to a string, specialization to convert unsigned char to number, not character. | |
template<typename T > | |
void | jevois::paramStringToVal (std::string const &valstring, T &result) |
Machine-readable conversion from string to T, for use in jevois::Parameter. | |
template<typename Q > | |
void | jevois::paramValToString (std::vector< Q > const &val, std::string &result) |
Machine-readable output to a string, for use in jevois::Parameter: outputs [Element1 , Element2 , ...]. | |
template<typename Q > | |
void | jevois::paramStringToVal (std::string const &valstring, std::vector< Q > &result) |
Machine-readable input from a string, for use in jevois::Parameter: reads [Element1 , Element2 , ...]. | |
template<typename F , typename S > | |
void | jevois::paramValToString (std::pair< F, S > const &val, std::string &result) |
Machine-readable output to a string, for use in jevois::Parameter: outputs first second . | |
template<typename F , typename S > | |
void | jevois::paramStringToVal (std::string const &valstring, std::pair< F, S > &result) |
Machine-readable input from a string, for use in jevois::Parameter: reads first second . | |
template<typename T > | |
void | jevois::paramValToString (cv::Point_< T > const &val, std::string &result) |
Machine-readable output to a string, for use in jevois::Parameter: outputs x y . | |
template<typename T > | |
void | jevois::paramStringToVal (std::string const &valstring, cv::Point_< T > &result) |
Machine-readable input from a string, for use in jevois::Parameter: reads x y . | |
template<typename T > | |
void | jevois::paramValToString (cv::Size_< T > const &val, std::string &result) |
Machine-readable output to a string, for use in jevois::Parameter: outputs width height . | |
template<typename T > | |
void | jevois::paramStringToVal (std::string const &valstring, cv::Size_< T > &result) |
Machine-readable input from a string, for use in jevois::Parameter: reads width height . | |
template<typename T > | |
void | jevois::paramValToString (cv::Scalar_< T > const &val, std::string &result) |
Machine-readable output to a string, for use in jevois::Parameter: outputs r g b a . | |
template<typename T > | |
void | jevois::paramStringToVal (std::string const &valstring, cv::Scalar_< T > &result) |
Machine-readable input from a string, for use in jevois::Parameter: reads r g b a or subsets. | |
template<> | |
void | jevois::paramValToString< ImColor > (ImColor const &val, std::string &result) |
Machine-readable output to a string, for use in jevois::Parameter: outputs R G B A , each 0..255. | |
template<> | |
void | jevois::paramStringToVal< ImColor > (std::string const &valstring, ImColor &result) |
Machine-readable input from a string, for use in jevois::Parameter: reads R G B A , each 0..255. | |
template<typename K , typename V > | |
void | jevois::paramValToString (std::map< K, V > const &val, std::string &result) |
Machine-readable output to a string, for use in jevois::Parameter: outputs [Key1:Value1 , Key2:Value2 , ...]. | |
template<typename K , typename V > | |
void | jevois::paramStringToVal (std::string const &valstring, std::map< K, V > &result) |
Machine-readable input from a string, for use in jevois::Parameter: reads [Key1:Value1 , Key2:Value2 , ...]. | |
template<> | |
void | jevois::paramValToString< bool > (bool const &val, std::string &result) |
Machine-readable conversion of bool to a string, for use in jevois::Parameter. | |
template<> | |
void | jevois::paramStringToVal< bool > (std::string const &valstring, bool &result) |
Machine-readable conversion from string to bool, for use in jevois::Parameter. | |
template<> | |
void | jevois::paramValToString< std::string > (std::string const &val, std::string &result) |
Machine-readable conversion of string to a string, for use in jevois::Parameter. | |
template<> | |
void | jevois::paramStringToVal< std::string > (std::string const &valstring, std::string &result) |
Machine-readable conversion from string to string, for use in jevois::Parameter. | |
void jevois::paramStringToVal | ( | std::string const & | valstring, |
cv::Point_< T > & | result | ||
) |
Machine-readable input from a string, for use in jevois::Parameter: reads x
y
.
void jevois::paramStringToVal | ( | std::string const & | valstring, |
cv::Scalar_< T > & | result | ||
) |
Machine-readable input from a string, for use in jevois::Parameter: reads r
g
b
a
or subsets.
void jevois::paramStringToVal | ( | std::string const & | valstring, |
cv::Size_< T > & | result | ||
) |
Machine-readable input from a string, for use in jevois::Parameter: reads width
height
.
void jevois::paramStringToVal | ( | std::string const & | valstring, |
std::map< K, V > & | result | ||
) |
Machine-readable input from a string, for use in jevois::Parameter: reads [Key1:Value1
, Key2:Value2
, ...].
Overload for std::map which supports nesting of other maps/vectors
void jevois::paramStringToVal | ( | std::string const & | valstring, |
std::pair< F, S > & | result | ||
) |
Machine-readable input from a string, for use in jevois::Parameter: reads first
second
.
void jevois::paramStringToVal | ( | std::string const & | valstring, |
std::vector< Q > & | result | ||
) |
Machine-readable input from a string, for use in jevois::Parameter: reads [Element1
, Element2
, ...].
Overload for std::vector<T> which supports nesting of other vectors and vectors of other types
void jevois::paramStringToVal | ( | std::string const & | valstring, |
T & | result | ||
) |
Machine-readable conversion from string to T, for use in jevois::Parameter.
Implementation-dependent | exception encountered during conversion |
A default implementation is provided which internally just uses jevois::from_string(). When implementing new types that can be used as parameters, users should supply the appropriate template specialization for this function. This function is used internally by Parameter to set a Parameter value from string.
Referenced by jevois::GUIhelper::drawParameters().
void jevois::paramStringToVal< bool > | ( | std::string const & | valstring, |
bool & | result | ||
) |
Machine-readable conversion from string to bool, for use in jevois::Parameter.
jevois::exception::Exception | if input string is malformed. |
Specialization for bool so that we can accept nice verbose terms rather than just 0 and 1. Acceptable ways to set a bool Parameter are:
"--myFlag"
is equivalent to "--myFlag=true"
void jevois::paramStringToVal< ImColor > | ( | std::string const & | valstring, |
ImColor & | result | ||
) |
Machine-readable input from a string, for use in jevois::Parameter: reads R
G
B
A
, each 0..255.
void jevois::paramStringToVal< std::string > | ( | std::string const & | valstring, |
std::string & | result | ||
) |
Machine-readable conversion from string to string, for use in jevois::Parameter.
This implementation just returns the original string.
void jevois::paramValToString | ( | cv::Point_< T > const & | val, |
std::string & | result | ||
) |
Machine-readable output to a string, for use in jevois::Parameter: outputs x
y
.
void jevois::paramValToString | ( | cv::Scalar_< T > const & | val, |
std::string & | result | ||
) |
Machine-readable output to a string, for use in jevois::Parameter: outputs r
g
b
a
.
void jevois::paramValToString | ( | cv::Size_< T > const & | val, |
std::string & | result | ||
) |
Machine-readable output to a string, for use in jevois::Parameter: outputs width
height
.
void jevois::paramValToString | ( | std::map< K, V > const & | val, |
std::string & | result | ||
) |
Machine-readable output to a string, for use in jevois::Parameter: outputs [Key1:Value1
, Key2:Value2
, ...].
Overload for std::map which supports nesting of other maps/vectors
void jevois::paramValToString | ( | std::pair< F, S > const & | val, |
std::string & | result | ||
) |
Machine-readable output to a string, for use in jevois::Parameter: outputs first
second
.
void jevois::paramValToString | ( | std::vector< Q > const & | val, |
std::string & | result | ||
) |
Machine-readable output to a string, for use in jevois::Parameter: outputs [Element1
, Element2
, ...].
Overload for std::vector<T> which supports nesting of other vectors and vectors of other types
void jevois::paramValToString | ( | T const & | val, |
std::string & | result | ||
) |
Machine-readable conversion of T to a string, for use in jevois::Parameter.
A default implementation is provided which internally just uses jevois::to_string(). When implementing new types that can be used as parameters, users should supply the appropriate template specialization for this function. This function is used internally by Parameter to get a Parameter value as a string.
void jevois::paramValToString< bool > | ( | bool const & | val, |
std::string & | result | ||
) |
Machine-readable conversion of bool to a string, for use in jevois::Parameter.
void jevois::paramValToString< ImColor > | ( | ImColor const & | val, |
std::string & | result | ||
) |
Machine-readable output to a string, for use in jevois::Parameter: outputs R
G
B
A
, each 0..255.
void jevois::paramValToString< std::string > | ( | std::string const & | val, |
std::string & | result | ||
) |
Machine-readable conversion of string to a string, for use in jevois::Parameter.
This implementation just returns the original string.
void jevois::paramValToString< unsigned char > | ( | unsigned char const & | val, |
std::string & | result | ||
) |
Machine-readable conversion of T to a string, specialization to convert unsigned char to number, not character.