1 #ifndef INCLUDE_GAZE_UTIL_DLIBCV_H_
2 #define INCLUDE_GAZE_UTIL_DLIBCV_H_
6 #include "opencv2/opencv.hpp"
7 #include "dlib/geometry.h"
30 template<
typename T,
int N>
32 return dlib::vector<T, N>(to_convert[0], to_convert[1], to_convert[2]);
35 template<
typename T,
int N>
37 return cv::Vec<T, N>(to_convert.x(), to_convert.y(), to_convert.z());
60 #endif // INCLUDE_GAZE_UTIL_DLIBCV_H_
dlib::point cv_to_dlib(const cv::Point &to_convert)
void rectangle(InputOutputArray img, Point pt1, Point pt2, const Scalar &color, int thickness=1, int lineType=LINE_8, int shift=0)
cv::Rect dlib_to_cv(const dlib::rectangle &to_convert)