From d7d12a69f8c441129d6c14bdd4023b3f5d6a1ac1 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Tue, 1 Oct 2019 17:08:50 -0500 Subject: [PATCH] aux/tracking: Remove unused functions. Use cv::norm instead. --- .../auxiliary/tracking/t_calibration_opencv.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/xrt/auxiliary/tracking/t_calibration_opencv.h b/src/xrt/auxiliary/tracking/t_calibration_opencv.h index 17b2f417e..b1cdc1686 100644 --- a/src/xrt/auxiliary/tracking/t_calibration_opencv.h +++ b/src/xrt/auxiliary/tracking/t_calibration_opencv.h @@ -126,22 +126,6 @@ mkpath(char *path) return 0; } -//! @todo Templatise? -XRT_MAYBE_UNUSED static float -cv_dist3d_point(cv::Point3f &p, cv::Point3f &q) -{ - cv::Point3f d = p - q; - return cv::sqrt(d.x * d.x + d.y * d.y + d.z * d.z); -} - -//! @todo Templatise? -XRT_MAYBE_UNUSED static float -cv_dist3d_vec(cv::Vec3f &p, cv::Vec3f &q) -{ - cv::Point3f d = p - q; - return cv::sqrt(d.x * d.x + d.y * d.y + d.z * d.z); -} - #ifdef __cplusplus }