summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-09-25 07:48:57 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-09-26 11:22:50 +0200
commit5680c432cdff1d82ef0f276f4c605d9cf3453c6b (patch)
tree6c901644bcd95e0d72a7051c5bc89ef67dd469a7
parent099cde1ded69ff1e26aa0262f27d8f1f58cb1cd3 (diff)
tracker/pt: cv::merge -> cv::cvtColor
-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