summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-10-15 13:26:31 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-10-16 18:20:50 +0200
commit6cf5d42bdcdf42c248d575cf3976b1ca7a4916a4 (patch)
tree0b7bb84597999341780990c2c9bc7d1ab9a469b2 /tracker-pt
parent27e58bfbf3e0bbfca8291ee018efe2fe74163ec2 (diff)
tracker/pt: fix radius formula
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/module/point_extractor.cpp2
1 files changed, 1 insertions, 1 deletions
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;