diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-20 08:17:57 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-20 08:17:57 +0200 |
commit | 1a95ca4dc340c246636aba1d1d8c8a7d7cd86e24 (patch) | |
tree | 4c911adafc97c76ccf9fcfa710bb3ecbb679a78b /tracker-pt/point_extractor.h | |
parent | dbfe45370f232c42db0a24b140db94279429bb4c (diff) |
tracker/pt: fix wrong input to flood fill
The binary frame needs to be used, not grayscale.
v2:
Use brightness for sorting points.
Diffstat (limited to 'tracker-pt/point_extractor.h')
-rw-r--r-- | tracker-pt/point_extractor.h | 4 |
1 files changed, 2 insertions, 2 deletions
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]; } |