summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-03-19 18:14:15 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-03-19 18:14:15 +0100
commita0364ef52874ae3e072d81001c435219f0e5cc76 (patch)
treefd7fb302be40b8e18920c7838a8e2bd168531759
parente615524d8e5ff7a356f2d84d8040d7730dcad7b4 (diff)
tracker/{pt,wii}: zero-initialize the right data
-rw-r--r--tracker-pt/module/frame.cpp2
-rw-r--r--tracker-wii/wii_frame.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tracker-pt/module/frame.cpp b/tracker-pt/module/frame.cpp
index a5b99c55..a045b783 100644
--- a/tracker-pt/module/frame.cpp
+++ b/tracker-pt/module/frame.cpp
@@ -30,7 +30,7 @@ Preview::Preview(int w, int h)
ensure_size(frame_out, w, h, CV_8UC4);
ensure_size(frame_copy, w, h, CV_8UC3);
- frame_out.setTo(cv::Scalar(0, 0, 0, 0));
+ frame_copy.setTo(cv::Scalar(0, 0, 0));
}
QImage Preview::get_bitmap()
diff --git a/tracker-wii/wii_frame.cpp b/tracker-wii/wii_frame.cpp
index 4d168023..d6628f00 100644
--- a/tracker-wii/wii_frame.cpp
+++ b/tracker-wii/wii_frame.cpp
@@ -44,7 +44,7 @@ WIIPreview::WIIPreview(int w, int h)
ensure_size(frame_out, w, h, CV_8UC4);
ensure_size(frame_copy, w, h, CV_8UC3);
- frame_out.setTo(cv::Scalar(0, 0, 0, 0));
+ frame_copy.setTo(cv::Scalar(0, 0, 0));
}
QImage WIIPreview::get_bitmap()