gaze
0.1.0
Perform gaze tracking with common webcams.
Main Page
Related Pages
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Groups
Pages
src
gaze
util
dlibcv.cpp
1
#include "gaze/util/dlibcv.h"
2
3
4
namespace
gaze {
5
6
namespace
util {
7
8
dlib::point
cv_to_dlib
(
const
cv::Point
& to_convert) {
9
return
{to_convert.
x
, to_convert.
y
};
10
}
11
12
dlib::rectangle
cv_to_dlib
(
const
cv::Rect
& to_convert) {
13
return
{to_convert.
x
, to_convert.
y
,
14
to_convert.
width
, to_convert.
height
};
15
}
16
17
cv::Rect
dlib_to_cv
(
const
dlib::rectangle
& to_convert) {
18
return
cv::Rect
(to_convert.left(), to_convert.top(),
19
to_convert.width(), to_convert.height());
20
}
21
22
}
// namespace util
23
24
}
// namespace gaze
cv::Rect_::x
_Tp x
gaze::util::cv_to_dlib
dlib::point cv_to_dlib(const cv::Point &to_convert)
Definition:
dlibcv.cpp:8
rectangle
void rectangle(InputOutputArray img, Point pt1, Point pt2, const Scalar &color, int thickness=1, int lineType=LINE_8, int shift=0)
cv::Rect_::y
_Tp y
Point_< int >
cv::Rect_::height
_Tp height
cv::Rect
Rect2i Rect
cv::Rect_
Point_< int >::x
int x
gaze::util::dlib_to_cv
cv::Rect dlib_to_cv(const dlib::rectangle &to_convert)
Definition:
dlibcv.cpp:17
Point_< int >::y
int y
cv::Rect_::width
_Tp width
Generated by
1.8.6