31 #ifndef ARGAGG_ARGAGG_CONVERT_OPENCV_HPP
32 #define ARGAGG_ARGAGG_CONVERT_OPENCV_HPP
34 #include "../argagg.hpp"
36 #include <opencv2/opencv.hpp>
51 static cv::Point_<T>
convert(
const char* s);
61 static cv::Point3_<T>
convert(
const char* s);
72 static cv::Size_<T>
convert(
const char* s);
82 static cv::Rect_<T>
convert(
const char* s);
101 cv::Point_<T> result {0, 0};
112 template <
typename T>
116 cv::Point3_<T> result {0, 0, 0};
130 template <
typename T>
134 cv::Size_<T> result {0, 0};
145 template <
typename T>
149 cv::Rect_<T> result {0, 0, 0, 0};
bool parse_next_component(const char *&s, T &out_arg, const char delim=',')
A utility function for parsing an argument as a delimited list. To use, initialize a const char* poin...
There are only two hard things in Computer Science: cache invalidation and naming things (Phil Karlto...
For simple types the main extension point for adding argument conversions is argagg::convert::arg<T>(...
static T convert(const char *arg)