diff options
Diffstat (limited to 'tracker-pt')
-rwxr-xr-x | tracker-pt/ftnoir_tracker_pt.cpp | 3 | ||||
-rw-r--r-- | tracker-pt/point_tracker.h | 10 |
2 files changed, 12 insertions, 1 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.cpp b/tracker-pt/ftnoir_tracker_pt.cpp index 04d5b526..f2c3f112 100755 --- a/tracker-pt/ftnoir_tracker_pt.cpp +++ b/tracker-pt/ftnoir_tracker_pt.cpp @@ -184,8 +184,11 @@ cv::Vec3d Tracker_PT::get_model_offset() // cap case 0: offset[0] = 0; offset[1] = 0; offset[2] = 0; break; // clip + // new clip + case 3: case 1: offset[0] = 135; offset[1] = 0; offset[2] = 0; break; // left clip + case 4: case 2: offset[0] = -135; offset[1] = 0; offset[2] = 0; break; } } diff --git a/tracker-pt/point_tracker.h b/tracker-pt/point_tracker.h index bcdd0dc7..8ed27aec 100644 --- a/tracker-pt/point_tracker.h +++ b/tracker-pt/point_tracker.h @@ -55,7 +55,7 @@ class PointModel { friend class PointTracker; public: - enum { Cap = 0, ClipRight = 1, ClipLeft = 2 }; + enum { Cap = 0, ClipRight = 1, ClipLeft = 2, New_ClipRight = 3, New_ClipLeft = 4, }; static constexpr int N_POINTS = 3; @@ -95,6 +95,14 @@ public: case ClipLeft: case ClipRight: { + const double a = 27, b = 43, c = 62, d = 74; + M01 = cv::Vec3d(0, b, -a); + M02 = cv::Vec3d(0, -c, -d); + break; + } + case New_ClipLeft: + case New_ClipRight: + { const double by = 75, bz = 35, ty = 40, tz = 18; M01 = cv::Vec3d(0, ty, -tz); M02 = cv::Vec3d(0, -by, -bz); |