summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Tracker_PT/camera.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-01-08 19:40:06 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-01-08 19:40:06 +0100
commit267010ba42b00cfd1ecc73c86d99c647ff191175 (patch)
tree26a8699d1d768432813ad9d975001d24612b6e1b /FTNoIR_Tracker_PT/camera.h
parentf653bffa5f3422f8eb5f29e49d5b0d45b76047a2 (diff)
use levmarq instead of coplanar POSIT implemented in numerically unstable fashion
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
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 ea68c387..6768e419 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), f(1) {}
+ CamInfo() : res_x(0), res_y(0), fps(0), fov(56) {}
int res_x;
int res_y;
int fps;
- float f; // (focal length) / (sensor width)
+ float fov;
};
// ----------------------------------------------------------------------------
@@ -48,7 +48,7 @@ public:
// calls corresponding template methods and reinitializes frame rate calculation
void set_device_index(int index);
- void set_f(float f);
+ void set_fov(float f);
void set_fps(int fps);
void set_res(int x_res, int y_res);