summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_pt/ftnoir_tracker_pt.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-12-14 00:19:17 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-12-14 00:19:17 +0100
commit253c206c171b5f064addccda266a1998039409ad (patch)
tree7c7ac4fc3be04ae809e18617f0ad4d00a2da2d65 /ftnoir_tracker_pt/ftnoir_tracker_pt.h
parent971603e92c856df8aed4b6d788d0a96485e4eccd (diff)
pt: set correct focal length from camera fovopentrack-2.3-rc6
Issue: #96 Having user-supplied camera fov, we can prevent yaw and pitch occuring by itself when moving horizontally and vertically. Note PointExtractor::extract_points(Mat& frame) should enable same value for fx and fy: c[0] = (mx/m - W/2)/W; c[1] = -(my/m - H/2)/W;
Diffstat (limited to 'ftnoir_tracker_pt/ftnoir_tracker_pt.h')
-rw-r--r--ftnoir_tracker_pt/ftnoir_tracker_pt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ftnoir_tracker_pt/ftnoir_tracker_pt.h b/ftnoir_tracker_pt/ftnoir_tracker_pt.h
index 2f922e17..3dd15618 100644
--- a/ftnoir_tracker_pt/ftnoir_tracker_pt.h
+++ b/ftnoir_tracker_pt/ftnoir_tracker_pt.h
@@ -57,6 +57,9 @@ private:
};
void set_command(Command command);
void reset_command(Command command);
+
+ float get_focal_length();
+
volatile int commands;
CVCamera camera;