summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Tracker_PT/camera.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-01-12 19:54:04 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-01-12 19:54:04 +0100
commit689c297be28e2f5050e234bdc69594c53166f194 (patch)
tree872a6c46d4b12c849a390031e405e2ad16ec52e8 /FTNoIR_Tracker_PT/camera.h
parent9d21e7d23fa17b91fb76a14d90630b027b78c2c8 (diff)
Revert "use levmarq instead of coplanar POSIT implemented in numerically unstable fashion"
This reverts commit 0bc59a0a7a42bcf65ebf3814e5f25fb17d735faa.
Diffstat (limited to 'FTNoIR_Tracker_PT/camera.h')
-rw-r--r--FTNoIR_Tracker_PT/camera.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/FTNoIR_Tracker_PT/camera.h b/FTNoIR_Tracker_PT/camera.h
index 6768e419..ea68c387 100644
--- a/FTNoIR_Tracker_PT/camera.h
+++ b/FTNoIR_Tracker_PT/camera.h
@@ -25,12 +25,12 @@ void get_camera_device_names(std::vector<std::string>& device_names);
// ----------------------------------------------------------------------------
struct CamInfo
{
- CamInfo() : res_x(0), res_y(0), fps(0), fov(56) {}
+ CamInfo() : res_x(0), res_y(0), fps(0), f(1) {}
int res_x;
int res_y;
int fps;
- float fov;
+ float f; // (focal length) / (sensor width)
};
// ----------------------------------------------------------------------------
@@ -48,7 +48,7 @@ public:
// calls corresponding template methods and reinitializes frame rate calculation
void set_device_index(int index);
- void set_fov(float f);
+ void set_f(float f);
void set_fps(int fps);
void set_res(int x_res, int y_res);