gaze  0.1.0
Perform gaze tracking with common webcams.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Public Attributes | List of all members
gaze::util::Data Struct Reference

Wraps the data acquired per frame into a single instance. More...

#include "gaze/util/data.h"

Public Member Functions

Constructors
 Data ()
 
 Data (const Data &data)
 
Dataoperator= (Data data)
 

Public Attributes

dlib::array< dlib::point > centers
 
std::map< std::string, double > execution_times
 
Input image
cv::Mat source_image
 
dlib::array2d< dlib::bgr_pixel > image
 
Landmarks
dlib::full_object_detection landmarks
 
dlib::array< dlib::array2d
< double > > 
eyes
 
Head pose
cv::Mat head_rotation
 
cv::Mat head_translation
 
Gaze point
std::vector< cv::Vec3dpupils
 
std::vector< cv::Vec3dgaze_points
 
cv::Vec2d estimated_gaze_point
 

Detailed Description

Wraps the data acquired per frame into a single instance.

This data can then be written in different data formats. ///

Todo:
shoeffner: Write at least one writer.

Definition at line 27 of file data.h.

Member Function Documentation

Data & gaze::util::Data::operator= ( Data  data)

Uses copy and Data::swap().

Parameters
datathe data object to assign
Returns
a reference to this.

Definition at line 52 of file data.cpp.

References swap().

52  {
53  this->swap(data);
54  return *this;
55 }

Member Data Documentation

dlib::array<dlib::point> gaze::util::Data::centers
cv::Vec2d gaze::util::Data::estimated_gaze_point
std::map<std::string, double> gaze::util::Data::execution_times

Maps the step identifiers to their processing times.

Definition at line 111 of file data.h.

Referenced by gaze::gui::DebugWindow::process_data().

dlib::array<dlib::array2d<double> > gaze::util::Data::eyes

The 0th element is the right eye, the 1st the left eye.

Definition at line 69 of file data.h.

Referenced by gaze::util::operator<<(), gaze::pipeline::PupilLocalization::process(), gaze::pipeline::EyeLike::visualize(), and gaze::pipeline::PupilLocalization::visualize().

std::vector<cv::Vec3d> gaze::util::Data::gaze_points

The gaze points in model coordinates.

Definition at line 100 of file data.h.

Referenced by gaze::pipeline::GazePointCalculation::process().

cv::Mat gaze::util::Data::head_rotation
cv::Mat gaze::util::Data::head_translation
dlib::array2d<dlib::bgr_pixel> gaze::util::Data::image
dlib::full_object_detection gaze::util::Data::landmarks
std::vector<cv::Vec3d> gaze::util::Data::pupils

The pupils in model coordinates.

Definition at line 95 of file data.h.

Referenced by gaze::pipeline::GazePointCalculation::process(), and gaze::pipeline::GazePointCalculation::visualize().

cv::Mat gaze::util::Data::source_image

The documentation for this struct was generated from the following files: