summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/module
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-04-29 18:44:52 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-04-29 18:49:38 +0200
commit48e94f67beb57749999d16adcf43af93ee8976da (patch)
tree16fc222417fc487afd8c0f49c9655d81e6ccd846 /tracker-pt/module
parent4a8aa4397aa578e19ce7e6a0b1fdd702bd4187d5 (diff)
tracker/{easy,pt,wii}: update `ensure_size'
Diffstat (limited to 'tracker-pt/module')
-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);
}