summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-09-26 19:25:52 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-03-29 00:04:47 +0200
commitae0374700e8c76b1a752f9a0b952ac8f26b79dcf (patch)
treed797dc6465dbbee89a457053de78e88178089a67
parent75c76a673253b6bb780b2fe1a8719bff9e32827d (diff)
tracker/trackhat: move function to struct's class
-rw-r--r--tracker-trackhat/camera.cpp5
-rw-r--r--tracker-trackhat/frame.cpp6
2 files changed, 6 insertions, 5 deletions
diff --git a/tracker-trackhat/camera.cpp b/tracker-trackhat/camera.cpp
index 19a8d6ca..a1265e80 100644
--- a/tracker-trackhat/camera.cpp
+++ b/tracker-trackhat/camera.cpp
@@ -122,8 +122,3 @@ void trackhat_camera::stop()
device = {};
}
-trackhat_preview::trackhat_preview(int w, int h)
-{
- frame_bgr.create(h, w, CV_8UC3);
- frame_bgra.create(h, w, CV_8UC4);
-}
diff --git a/tracker-trackhat/frame.cpp b/tracker-trackhat/frame.cpp
index d9913776..fe492beb 100644
--- a/tracker-trackhat/frame.cpp
+++ b/tracker-trackhat/frame.cpp
@@ -2,6 +2,12 @@
#include <opencv2/imgproc.hpp>
#include "compat/math.hpp"
+trackhat_preview::trackhat_preview(int w, int h)
+{
+ frame_bgr.create(h, w, CV_8UC3);
+ frame_bgra.create(h, w, CV_8UC4);
+}
+
void trackhat_preview::set_last_frame(const pt_frame& frame_)
{
center = {-1, -1};