diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-12-21 13:31:21 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-12-21 13:31:21 +0100 |
commit | fe9bdd43b59ee5983580af14ddc0a7289ac82b8b (patch) | |
tree | 8aed1427ced0a02ae42ee3f136cb5fbed871aa76 /ftnoir_tracker_pt/point_extractor.cpp | |
parent | 0812312b232eb1ed85128d1ae141a4967964fa55 (diff) |
pt: cap hyst value to 1/4 of image intensity
Diffstat (limited to 'ftnoir_tracker_pt/point_extractor.cpp')
-rw-r--r-- | ftnoir_tracker_pt/point_extractor.cpp | 2 |
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); |