From 76c69398f5e8ef8d9d4858383ff2602fe18d7218 Mon Sep 17 00:00:00 2001 From: Michael Welter Date: Thu, 30 May 2024 19:18:14 +0200 Subject: tracker/nn: Fix a warning from double to float conversion --- tracker-neuralnet/opencv_contrib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tracker-neuralnet/opencv_contrib.h') diff --git a/tracker-neuralnet/opencv_contrib.h b/tracker-neuralnet/opencv_contrib.h index af92c12f..1c199025 100644 --- a/tracker-neuralnet/opencv_contrib.h +++ b/tracker-neuralnet/opencv_contrib.h @@ -81,7 +81,7 @@ inline cv::Vec3f toRotVec(const cv::Quatf& q) #if 1 // w = cos(alpha/2) // xyz = sin(alpha/2)*axis - static constexpr float eps = 1.e-12; + static constexpr float eps = 1.e-12f; const cv::Vec3f xyz{q.x, q.y, q.z}; const float len = cv::norm(xyz); const float angle = std::atan2(len, q.w)*2.f; -- cgit v1.2.3