From edd8680615e842375d8c9af25427784ed01f4fab Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 19 Oct 2021 08:33:37 +0200 Subject: cv, tracker/pt: cleanup opencv includes --- tracker-pt/module/camera.cpp | 7 ++----- tracker-pt/module/camera.h | 2 -- tracker-pt/module/frame.cpp | 2 -- tracker-pt/module/frame.hpp | 2 +- tracker-pt/module/point_extractor.cpp | 3 ++- tracker-pt/module/point_extractor.h | 6 ++---- 6 files changed, 7 insertions(+), 15 deletions(-) (limited to 'tracker-pt/module') diff --git a/tracker-pt/module/camera.cpp b/tracker-pt/module/camera.cpp index 19c0c2224..73c57f37e 100644 --- a/tracker-pt/module/camera.cpp +++ b/tracker-pt/module/camera.cpp @@ -7,10 +7,7 @@ #include "camera.h" #include "frame.hpp" - -#include "compat/math-imports.hpp" - -#include +#include namespace pt_module { @@ -158,7 +155,7 @@ bool Camera::get_frame_(cv::Mat& img) int stride = frame.stride; if (stride == 0) stride = cv::Mat::AUTO_STEP; - img = cv::Mat(frame.height, frame.width, CV_8UC(frame.channels), (void*)frame.data, stride); + img = cv::Mat(frame.height, frame.width, CV_8UC(frame.channels), (void*)frame.data, (size_t)stride); return true; } } diff --git a/tracker-pt/module/camera.h b/tracker-pt/module/camera.h index f9b62282d..e47721786 100644 --- a/tracker-pt/module/camera.h +++ b/tracker-pt/module/camera.h @@ -13,8 +13,6 @@ #include -#include - #include namespace pt_module { diff --git a/tracker-pt/module/frame.cpp b/tracker-pt/module/frame.cpp index 8549e5fd1..1a276f16d 100644 --- a/tracker-pt/module/frame.cpp +++ b/tracker-pt/module/frame.cpp @@ -1,7 +1,5 @@ #include "frame.hpp" - #include "compat/math.hpp" - #include namespace pt_module { diff --git a/tracker-pt/module/frame.hpp b/tracker-pt/module/frame.hpp index 239a3474d..0569a3232 100644 --- a/tracker-pt/module/frame.hpp +++ b/tracker-pt/module/frame.hpp @@ -2,7 +2,7 @@ #include "pt-api.hpp" -#include +#include #include #ifdef __clang__ diff --git a/tracker-pt/module/point_extractor.cpp b/tracker-pt/module/point_extractor.cpp index be4823ad4..42aafba65 100644 --- a/tracker-pt/module/point_extractor.cpp +++ b/tracker-pt/module/point_extractor.cpp @@ -9,10 +9,11 @@ #include "point_extractor.h" #include "point_tracker.h" #include "frame.hpp" - #include "cv/numeric.hpp" #include "compat/math.hpp" +#include + #undef PREVIEW //#define PREVIEW diff --git a/tracker-pt/module/point_extractor.h b/tracker-pt/module/point_extractor.h index 124cb1108..b1cc86d5a 100644 --- a/tracker-pt/module/point_extractor.h +++ b/tracker-pt/module/point_extractor.h @@ -9,12 +9,10 @@ #pragma once #include "pt-api.hpp" - +#include +#include #include -#include -#include - namespace pt_module { using namespace numeric_types; -- cgit v1.2.3