summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/point_extractor.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-10 03:08:45 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-10 03:37:40 +0100
commitb9f9a013a9abe8a34e371f63abb54af347c2cd27 (patch)
tree5945c470e943bcd77b5c082352bcbf8e30fc2536 /tracker-pt/point_extractor.cpp
parent162b66f62312280d06b454496804a0956a06fa35 (diff)
tracker/pt: add comment
Diffstat (limited to 'tracker-pt/point_extractor.cpp')
-rw-r--r--tracker-pt/point_extractor.cpp10
1 files changed, 8 insertions, 2 deletions
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: