summaryrefslogtreecommitdiffhomepage
path: root/tracker-trackhat/frame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-trackhat/frame.cpp')
-rw-r--r--tracker-trackhat/frame.cpp6
1 files changed, 6 insertions, 0 deletions
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};