summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Tracker_PT/point_extractor.h
diff options
context:
space:
mode:
authorusrusr <github@spam.ulf-schreiber.de>2013-12-10 01:52:43 +0100
committerusrusr <github@spam.ulf-schreiber.de>2013-12-10 02:06:00 +0100
commit28fcbb913ed0969b22fd07c32c63c2a54568b6c6 (patch)
tree1bcd1604a90b52c12129bbb87ba33d6006daee85 /FTNoIR_Tracker_PT/point_extractor.h
parenteb42ffe30d51aa44ac0bebe0d5a04a6a13bbd789 (diff)
add an optional per-pixel hysteresis to remove pixel noise at the expense of a moderate movement threshold (but no lag)
Diffstat (limited to 'FTNoIR_Tracker_PT/point_extractor.h')
-rw-r--r--FTNoIR_Tracker_PT/point_extractor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/FTNoIR_Tracker_PT/point_extractor.h b/FTNoIR_Tracker_PT/point_extractor.h
index c62d34f9..b9f46666 100644
--- a/FTNoIR_Tracker_PT/point_extractor.h
+++ b/FTNoIR_Tracker_PT/point_extractor.h
@@ -21,12 +21,18 @@ public:
// WARNING: returned reference is valid as long as object
const std::vector<cv::Vec2f>& extract_points(cv::Mat frame, float dt, bool draw_output);
const std::vector<cv::Vec2f>& get_points() { return points; }
+ PointExtractor();
int threshold_val;
+ int threshold_secondary_val;
int min_size, max_size;
protected:
std::vector<cv::Vec2f> points;
+ cv::Mat frame_last;
+
+
+ bool first;
};
#endif //POINTEXTRACTOR_H