summaryrefslogtreecommitdiffhomepage
path: root/tracker-aruco
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-09-04 13:52:21 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-09-04 13:53:26 +0200
commit0b8ef66106c2538c1ae0c8ea1078647244168b04 (patch)
tree0c563d787e20cce7c56964afddf6260a9b830411 /tracker-aruco
parent0acca4a338464f4f7543d1c709c8d27ddb3e86d8 (diff)
tracker/aruco: fix same typo as in tracker/nn
Reported by: @DaWelter
Diffstat (limited to 'tracker-aruco')
-rw-r--r--tracker-aruco/ftnoir_tracker_aruco.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tracker-aruco/ftnoir_tracker_aruco.cpp b/tracker-aruco/ftnoir_tracker_aruco.cpp
index 6e94e618..f389ea2c 100644
--- a/tracker-aruco/ftnoir_tracker_aruco.cpp
+++ b/tracker-aruco/ftnoir_tracker_aruco.cpp
@@ -388,7 +388,9 @@ void aruco_tracker::run()
switch (img.channels)
{
case 1:
- grayscale.setTo(color); break;
+ grayscale.create(img.height, img.width, CV_8UC1);
+ color.copyTo(grayscale);
+ break;
case 3:
cv::cvtColor(color, grayscale, cv::COLOR_BGR2GRAY);
break;