diff options
author | Patrick Ruoff <c14-radioactive@19e81ba0-9b1a-49c3-bd6c-561e1906d5fb> | 2012-09-29 13:18:52 +0000 |
---|---|---|
committer | Patrick Ruoff <c14-radioactive@19e81ba0-9b1a-49c3-bd6c-561e1906d5fb> | 2012-09-29 13:18:52 +0000 |
commit | 2836141124cf065387bbc7e59ddcfa238ea0a26f (patch) | |
tree | 011851f51eb22971a411de8d888f3ba7ce397764 /FTNoIR_Tracker_PT/camera.h | |
parent | 71736d2d3bf639096c3c1b51565fd4c45239e44a (diff) |
Updated vc9 project files.
PT: Undo of Wim's last wrong commit, some code cleanup, added preliminary resolution change support.
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@184 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FTNoIR_Tracker_PT/camera.h')
-rw-r--r-- | FTNoIR_Tracker_PT/camera.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/FTNoIR_Tracker_PT/camera.h b/FTNoIR_Tracker_PT/camera.h index 69719fcc..f26a7a8f 100644 --- a/FTNoIR_Tracker_PT/camera.h +++ b/FTNoIR_Tracker_PT/camera.h @@ -29,6 +29,8 @@ public: void set_index(int index);
void set_f(float f) { cam_info.f = f; }
+ bool set_fps(int fps);
+ bool set_res(int x_res, int y_res);
// gets a frame from the camera, dt: time since last call in seconds
cv::Mat get_frame(float dt);
@@ -37,6 +39,7 @@ public: const CamInfo& get_info() const { return cam_info; }
protected:
+ int active_index;
CvCapture* cap;
CamInfo cam_info;
float dt_valid;
|