summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/module/frame.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-09-27 15:36:39 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-09-27 16:05:03 +0200
commit60201f181eed06fed6112530c3283453a5e45688 (patch)
treed2cfd8b6ad300dd5ab994e2b22f85a5794a03eda /tracker-pt/module/frame.cpp
parentbbf1d98e96126e361272b44aca15e7ef576700de (diff)
tracker/pt: fix accidentally converting preview to grayscale
Diffstat (limited to 'tracker-pt/module/frame.cpp')
-rw-r--r--tracker-pt/module/frame.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tracker-pt/module/frame.cpp b/tracker-pt/module/frame.cpp
index dc122375..be966424 100644
--- a/tracker-pt/module/frame.cpp
+++ b/tracker-pt/module/frame.cpp
@@ -27,9 +27,9 @@ void Preview::set_last_frame(const pt_frame& frame_)
frame_copy.setTo(cv::Scalar{0, 0, 0});
}
- const bool need_resize = frame2.cols != frame_out.cols || frame2.rows != frame_out.rows;
+ const bool need_resize = frame->cols != frame_out.cols || frame->rows != frame_out.rows;
if (need_resize)
- cv::resize(frame2, frame_copy, cv::Size(frame_out.cols, frame_out.rows), 0, 0, cv::INTER_NEAREST);
+ cv::resize(*frame, frame_copy, cv::Size(frame_out.cols, frame_out.rows), 0, 0, cv::INTER_NEAREST);
else
frame->copyTo(frame_copy);
}