From 775ed92ab6fbbe89712f800f2f603054d7466ff0 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 8 Jan 2019 09:11:14 +0100 Subject: tracker/pt: fix meanshift delta --- tracker-pt/module/point_extractor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tracker-pt') diff --git a/tracker-pt/module/point_extractor.cpp b/tracker-pt/module/point_extractor.cpp index 6eaf0d2f..596b3d93 100644 --- a/tracker-pt/module/point_extractor.cpp +++ b/tracker-pt/module/point_extractor.cpp @@ -359,7 +359,7 @@ end: vec2 com_new = MeanShiftIteration(frame_roi, pos, kernel_radius); vec2 delta = com_new - pos; pos = com_new; - if (delta.dot(delta) < 1e-2) + if (delta.dot(delta) < f(1e-3)) break; } -- cgit v1.2.3