From e94be88e28b41610bab983a1cbf8f31133a4ced8 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 1 Jul 2015 14:25:34 +0200 Subject: pt: show color frame in widget --- ftnoir_tracker_pt/point_extractor.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'ftnoir_tracker_pt') diff --git a/ftnoir_tracker_pt/point_extractor.cpp b/ftnoir_tracker_pt/point_extractor.cpp index dd75852c..e81e3aa0 100644 --- a/ftnoir_tracker_pt/point_extractor.cpp +++ b/ftnoir_tracker_pt/point_extractor.cpp @@ -215,11 +215,14 @@ std::vector PointExtractor::extract_points(Mat& frame) points.push_back(p); } + vector channels_; + cv::split(frame, channels_); // draw output image + Mat frame_bin_ = frame_bin * .5; vector channels; - channels.push_back(frame_gray + frame_bin); - channels.push_back(frame_gray - frame_bin); - channels.push_back(frame_gray - frame_bin); + channels.push_back(channels_[0] + frame_bin_); + channels.push_back(channels_[1] - frame_bin_); + channels.push_back(channels_[2] - frame_bin_); merge(channels, frame); return points; -- cgit v1.2.3