summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tracker-neuralnet/opencv_contrib.h2
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;