diff options
| author | Stéphane Lenclud <github@lenclud.com> | 2019-04-15 12:22:05 +0200 | 
|---|---|---|
| committer | Stéphane Lenclud <github@lenclud.com> | 2019-04-24 18:46:12 +0200 | 
| commit | 6ca96478ea4d8e6ba71ebf41a1f7d904f2c3df5d (patch) | |
| tree | 85810bc2463bb5786817830cab89cd19c9241325 /tracker-easy/preview.cpp | |
| parent | 9830011866f0817d08c3e3f0bd26e98e54c523e7 (diff) | |
Easy Tracker: Removing point extractor interface. Using cv::Point instead of vec2.
Diffstat (limited to 'tracker-easy/preview.cpp')
| -rw-r--r-- | tracker-easy/preview.cpp | 13 | 
1 files changed, 6 insertions, 7 deletions
diff --git a/tracker-easy/preview.cpp b/tracker-easy/preview.cpp index f5c239e9..364e45ca 100644 --- a/tracker-easy/preview.cpp +++ b/tracker-easy/preview.cpp @@ -11,6 +11,7 @@  #include "compat/math.hpp"  #include <opencv2/imgproc.hpp> +#include <QDebug>  namespace EasyTracker @@ -99,20 +100,18 @@ namespace EasyTracker              QImage::Format_ARGB32);      } -    void Preview::draw_head_center(numeric_types::f x, numeric_types::f y) +    void Preview::DrawCross(cv::Point aPoint)      { -        int px = iround(x), py = iround(y); -          constexpr int len = 9;          static const cv::Scalar color(0, 255, 255);          cv::line(iFrameRgb, -            cv::Point(px - len, py), -            cv::Point(px + len, py), +            cv::Point(aPoint.x - len, aPoint.y), +            cv::Point(aPoint.x + len, aPoint.y),              color, 2);          cv::line(iFrameRgb, -            cv::Point(px, py - len), -            cv::Point(px, py + len), +            cv::Point(aPoint.x, aPoint.y - len), +            cv::Point(aPoint.x, aPoint.y + len),              color, 2);      }  | 
