From b9f9a013a9abe8a34e371f63abb54af347c2cd27 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 10 Jan 2018 03:08:45 +0100 Subject: tracker/pt: add comment --- tracker-pt/point_extractor.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tracker-pt/point_extractor.cpp') diff --git a/tracker-pt/point_extractor.cpp b/tracker-pt/point_extractor.cpp index 5c8dc7d7..ea7b82a5 100644 --- a/tracker-pt/point_extractor.cpp +++ b/tracker-pt/point_extractor.cpp @@ -268,11 +268,17 @@ void PointExtractor::extract_points(const cv::Mat& frame, cv::Mat& preview_frame if (radius > region_size_max || radius < region_size_min) continue; - blob b(radius, vec2(rect.width/2., rect.height/2.), std::pow(f(norm), f(1.1))/cnt, rect); - blobs.push_back(b); + blobs.emplace_back(radius, vec2(rect.width/2., rect.height/2.), std::pow(f(norm), f(1.1))/cnt, rect); if (idx >= max_blobs) goto end; + + // XXX we could go to the next scanline unless the points are really small. + // i'd expect each point being present on at least one unique scanline + // but it turns out some people are using 2px points -sh 20180110 +#if BROKEN && 0 + break; +#endif } } end: -- cgit v1.2.3