diff options
author | Michael Welter <michael@welter-4d.de> | 2024-05-30 19:18:14 +0200 |
---|---|---|
committer | Michael Welter <michael@welter-4d.de> | 2024-05-30 19:18:14 +0200 |
commit | 76c69398f5e8ef8d9d4858383ff2602fe18d7218 (patch) | |
tree | 61b99a064adc8ab83b8b9a5c79a11c51b6d2d80d | |
parent | 9f4bc14bf6d5fbe4534953945a587c89a86a29f5 (diff) |
tracker/nn: Fix a warning from double to float conversion
-rw-r--r-- | tracker-neuralnet/opencv_contrib.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |