From a0364ef52874ae3e072d81001c435219f0e5cc76 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 19 Mar 2019 18:14:15 +0100 Subject: tracker/{pt,wii}: zero-initialize the right data --- tracker-pt/module/frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tracker-pt/module') 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() -- cgit v1.2.3