From 1a95ca4dc340c246636aba1d1d8c8a7d7cd86e24 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 20 Jul 2016 08:17:57 +0200 Subject: tracker/pt: fix wrong input to flood fill The binary frame needs to be used, not grayscale. v2: Use brightness for sorting points. --- tracker-pt/point_extractor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tracker-pt/point_extractor.h') diff --git a/tracker-pt/point_extractor.h b/tracker-pt/point_extractor.h index f4839208..9ef2adb4 100644 --- a/tracker-pt/point_extractor.h +++ b/tracker-pt/point_extractor.h @@ -38,9 +38,9 @@ private: struct blob { - double radius; + double radius, brightness; vec2 pos; - blob(double radius, const cv::Vec2d& pos) : radius(radius), pos(pos) + blob(double radius, const cv::Vec2d& pos, double brightness) : radius(radius), brightness(brightness), pos(pos) { //qDebug() << "radius" << radius << "pos" << pos[0] << pos[1]; } -- cgit v1.2.3