summaryrefslogtreecommitdiffhomepage
path: root/tracker-aruco/ftnoir_tracker_aruco.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-aruco/ftnoir_tracker_aruco.cpp')
-rw-r--r--tracker-aruco/ftnoir_tracker_aruco.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-aruco/ftnoir_tracker_aruco.cpp b/tracker-aruco/ftnoir_tracker_aruco.cpp
index 962d0060..2842a9c2 100644
--- a/tracker-aruco/ftnoir_tracker_aruco.cpp
+++ b/tracker-aruco/ftnoir_tracker_aruco.cpp
@@ -351,7 +351,7 @@ void aruco_tracker::cycle_detection_params()
use_otsu = false;
adaptive_size_pos++;
- adaptive_size_pos %= sizeof(adaptive_sizes)/sizeof(*adaptive_sizes);
+ adaptive_size_pos %= std::size(adaptive_sizes);
}
set_detector_params();