summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/module/frame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-pt/module/frame.cpp')
-rw-r--r--tracker-pt/module/frame.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-pt/module/frame.cpp b/tracker-pt/module/frame.cpp
index a045b783..ab110871 100644
--- a/tracker-pt/module/frame.cpp
+++ b/tracker-pt/module/frame.cpp
@@ -73,7 +73,7 @@ void Preview::draw_head_center(f x, f y)
void Preview::ensure_size(cv::Mat& frame, int w, int h, int type)
{
- if (frame.cols != w || frame.rows != h)
+ if (frame.cols != w || frame.rows != h || frame.type() != type)
frame = cv::Mat(h, w, type);
}