gaze
0.1.0
Perform gaze tracking with common webcams.
|
The processing pipeline from input to output. More...
#include "gaze/pipeline.h"
Public Member Functions | |
Pipeline (std::vector< PipelineStep * > steps, const bool start=true) | |
~Pipeline () | |
void | start () |
void | stop () |
util::Data | get_data () |
std::vector< PipelineStep * > | get_steps () |
The processing pipeline from input to output.
Definition at line 19 of file pipeline.h.
|
explicit |
Initializes the pipeline and starts the processing.
The start can be deferred and manually invoked by a call to start().
steps | The PipelineSteps to use. |
start | if true , the processing will start automatically. |
Definition at line 47 of file pipeline.cpp.
References std::ref(), and start().
gaze::Pipeline::~Pipeline | ( | ) |
Stops processing if not already done, joins the thread and deletes it.
Definition at line 55 of file pipeline.cpp.
References stop().
util::Data gaze::Pipeline::get_data | ( | ) |
Definition at line 69 of file pipeline.cpp.
References lock().
Referenced by gaze::GazeTracker::get_current_gaze_point(), and gaze::gui::DebugWindow::on_user_event().
std::vector< PipelineStep * > gaze::Pipeline::get_steps | ( | ) |
Definition at line 74 of file pipeline.cpp.
void gaze::Pipeline::start | ( | ) |
Starts the processing of the underlying thread.
Definition at line 61 of file pipeline.cpp.
Referenced by Pipeline().
void gaze::Pipeline::stop | ( | ) |
Stops the processing of the underlying thread.
Definition at line 65 of file pipeline.cpp.
Referenced by ~Pipeline().