summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tracker-pt/module/frame.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tracker-pt/module/frame.cpp b/tracker-pt/module/frame.cpp
index 9247212b..b8f2b7cb 100644
--- a/tracker-pt/module/frame.cpp
+++ b/tracker-pt/module/frame.cpp
@@ -14,8 +14,7 @@ Preview& Preview::operator=(const pt_frame& frame_)
if (frame2.channels() == 1)
{
frame_tmp.create(frame2.rows, frame2.cols, CV_8UC3);
- const cv::Mat channels[] = { frame2, frame2, frame2 };
- cv::merge(channels, std::size(channels), frame_tmp);
+ cv::cvtColor(frame2, frame_tmp, cv::COLOR_GRAY2BGR);
frame = &frame_tmp;
}
else