summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/point_extractor.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-07-25 15:26:16 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-07-25 19:26:39 +0200
commit54749f9d879b244639c44f3a8865e17b679c8528 (patch)
tree94ea01215bdeafce6f947a3418d5bccd3e08b621 /tracker-pt/point_extractor.h
parent019cbb9a324255cccdb5127fdd5d4c1fb502c517 (diff)
tracker/pt: fix weight formula
Diffstat (limited to 'tracker-pt/point_extractor.h')
-rw-r--r--tracker-pt/point_extractor.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tracker-pt/point_extractor.h b/tracker-pt/point_extractor.h
index ac632b74..1016977c 100644
--- a/tracker-pt/point_extractor.h
+++ b/tracker-pt/point_extractor.h
@@ -28,8 +28,9 @@ struct blob
double radius, value;
vec2 pos;
cv::Rect rect;
+ unsigned idx;
- blob(double radius, const cv::Vec2d& pos, double value, const cv::Rect &rect);
+ blob(double radius, const cv::Vec2d& pos, double value, const cv::Rect &rect, unsigned idx);
};
class PointExtractor final
@@ -45,12 +46,11 @@ private:
static constexpr int max_blobs = 16;
cv::Mat1b frame_bin, frame_gray;
- //cv::Mat1b frame_blobs;
+ cv::Mat1b contour_masks[max_blobs];
cv::Mat1f hist;
std::vector<blob> blobs;
std::vector<std::vector<cv::Point>> contours;
- //std::vector<cv::Point> hull;
};
} // ns pt_extractor_impl