diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-04-29 18:44:52 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-04-29 18:49:38 +0200 |
commit | 48e94f67beb57749999d16adcf43af93ee8976da (patch) | |
tree | 16fc222417fc487afd8c0f49c9655d81e6ccd846 /tracker-wii | |
parent | 4a8aa4397aa578e19ce7e6a0b1fdd702bd4187d5 (diff) |
tracker/{easy,pt,wii}: update `ensure_size'
Diffstat (limited to 'tracker-wii')
-rw-r--r-- | tracker-wii/wii_frame.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-wii/wii_frame.cpp b/tracker-wii/wii_frame.cpp index d6628f00..8f18f4b8 100644 --- a/tracker-wii/wii_frame.cpp +++ b/tracker-wii/wii_frame.cpp @@ -97,6 +97,6 @@ void WIIPreview::draw_head_center(f x, f y) void WIIPreview::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); } |