summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-12-21 13:31:21 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-12-21 13:31:21 +0100
commitfe9bdd43b59ee5983580af14ddc0a7289ac82b8b (patch)
tree8aed1427ced0a02ae42ee3f136cb5fbed871aa76 /ftnoir_tracker_pt
parent0812312b232eb1ed85128d1ae141a4967964fa55 (diff)
pt: cap hyst value to 1/4 of image intensity
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 949fd58f..daea9fc0 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.;
+ float hyst = float(primary)/(256.*4.);
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);