diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2018-02-13 15:19:29 +0100 | 
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-02-13 15:19:29 +0100 | 
| commit | 12b4ce09ea3d68c59bc1711e365c1bb8275302ad (patch) | |
| tree | d423cb1395473b9b95dfc3a590265acab18637c8 /tracker-pt/point_tracker.h | |
| parent | cafae606e2653a249e4b6aa90ed8a90952cbfa10 (diff) | |
gui, tracker/pt: add new clip logic
Diffstat (limited to 'tracker-pt/point_tracker.h')
| -rw-r--r-- | tracker-pt/point_tracker.h | 10 | 
1 files changed, 9 insertions, 1 deletions
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);  | 
