summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-12-21 13:43:19 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-12-21 13:43:19 +0100
commit69d8530082b8d43fd62e02d83843bb8e4e6fb738 (patch)
treea24feb251559898de6ab21917c5b067ff575ec85 /ftnoir_tracker_pt
parent9e731b1ee3e37db6c3387da89960ec7d654c8ee5 (diff)
pt: cap hyst further to 1/8 of image intensity
Higher values cause too much lag.
Diffstat (limited to 'ftnoir_tracker_pt')
-rw-r--r--ftnoir_tracker_pt/point_extractor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftnoir_tracker_pt/point_extractor.cpp b/ftnoir_tracker_pt/point_extractor.cpp
index e6a4a6b8..bc0593b1 100644
--- a/ftnoir_tracker_pt/point_extractor.cpp
+++ b/ftnoir_tracker_pt/point_extractor.cpp
@@ -57,7 +57,7 @@ std::vector<Vec2f> PointExtractor::extract_points(Mat& frame)
float t = primary;
//float hyst = float(threshold_secondary_val)/512.;
//threshold(frame_gray, frame_bin, (t + ((255.-t)*hyst)), 255, THRESH_BINARY);
- float hyst = float(primary)/(256.*4.);
+ float hyst = float(primary)/(256.*8.);
threshold(frame_gray, frame_bin, t, 255, THRESH_BINARY);
threshold(frame_gray, frame_bin_low,std::max(float(1), t - (t*hyst)), 255, THRESH_BINARY);