diff options
-rw-r--r-- | tracker-trackhat/camera.cpp | 5 | ||||
-rw-r--r-- | tracker-trackhat/frame.cpp | 6 |
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}; |