gaze
0.1.0
Perform gaze tracking with common webcams.
|
Calculates the gaze point. More...
#include "gaze/pipeline_steps/gaze_point_calculation.h"
Public Member Functions | |
void | process (util::Data &data) override |
void | visualize (util::Data &data) override |
Public Member Functions inherited from gaze::PipelineStep | |
PipelineStep () | |
std::string | get_name () |
virtual | ~PipelineStep ()=default |
Public Member Functions inherited from gaze::gui::Visualizeable< widget_type > | |
std::shared_ptr< dlib::drawable > | init (dlib::drawable_window &parent, int width, int height, std::string text="No visualization.") final |
void | remove_widget () override |
Public Member Functions inherited from gaze::gui::VisualizeableBase | |
virtual | ~VisualizeableBase ()=default |
Protected Member Functions | |
void | set_sensor_size (double sensor_diagonal, double aspect_ratio) |
Additional Inherited Members | |
Protected Attributes inherited from gaze::PipelineStep | |
int | number |
std::string | name |
Protected Attributes inherited from gaze::gui::Visualizeable< widget_type > | |
std::shared_ptr< widget_type > | widget |
Calculates the gaze point.
///
Definition at line 53 of file gaze_point_calculation.h.
|
overridevirtual |
Calculates the gaze point given a head pose and eye centers.
data | The data object to be updated. |
data
the modified data object. Implements gaze::PipelineStep.
Definition at line 214 of file gaze_point_calculation.cpp.
References gaze::util::Data::centers, gaze::util::clamp(), gaze::util::Data::estimated_gaze_point, gaze::util::Data::gaze_points, gaze::util::get_eyes_chip_details(), gaze::util::Data::head_rotation, gaze::util::Data::head_translation, gaze::util::Data::landmarks, gaze::util::Data::pupils, std::vector< _Tp, _Alloc >::push_back(), and cv::Rodrigues().
|
protected |
Calculates the sensor width and sensor height from the sensor diagonal and its aspect ratio.
Definition at line 206 of file gaze_point_calculation.cpp.
References std::sqrt().
|
overridevirtual |
Visualizes the estimated gaze point.
data | The data object to be visualized. |
Implements gaze::gui::VisualizeableBase.
Definition at line 274 of file gaze_point_calculation.cpp.
References gaze::util::Data::head_rotation, gaze::util::Data::head_translation, gaze::util::Data::landmarks, gaze::util::Data::pupils, std::vector< _Tp, _Alloc >::push_back(), and cv::Rodrigues().