From 6cf5d42bdcdf42c248d575cf3976b1ca7a4916a4 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 15 Oct 2021 13:26:31 +0200 Subject: tracker/pt: fix radius formula --- tracker-pt/module/point_extractor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracker-pt/module/point_extractor.cpp b/tracker-pt/module/point_extractor.cpp index 6f42bb4e..e679e7fc 100644 --- a/tracker-pt/module/point_extractor.cpp +++ b/tracker-pt/module/point_extractor.cpp @@ -337,7 +337,7 @@ void PointExtractor::extract_points(const pt_frame& frame_, } } - const f radius = std::sqrt(cnt / pi); + const f radius = (f)(std::sqrt(cnt) / std::sqrt(pi)); if (radius > region_size_max || radius < region_size_min) continue; -- cgit v1.2.3