summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_pt/point_extractor.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-20 08:13:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-20 08:13:36 +0200
commite89c2b1034692eb1365715a089b7035e6d837719 (patch)
tree1ee2fc1a29c4e62eac403bd2092f0b51943c1578 /ftnoir_tracker_pt/point_extractor.cpp
parent20827ce134033e2370c6858905d2faca5c240602 (diff)
pt: change point internal representation
Store points as pixel coordinates, not -0.5->0.5. This has no effect on tracking as POSIT is robust enough not to care.
Diffstat (limited to 'ftnoir_tracker_pt/point_extractor.cpp')
-rw-r--r--ftnoir_tracker_pt/point_extractor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/ftnoir_tracker_pt/point_extractor.cpp b/ftnoir_tracker_pt/point_extractor.cpp
index e81e3aa0..cc9dbce1 100644
--- a/ftnoir_tracker_pt/point_extractor.cpp
+++ b/ftnoir_tracker_pt/point_extractor.cpp
@@ -211,8 +211,7 @@ std::vector<Vec2f> PointExtractor::extract_points(Mat& frame)
for (auto& b : simple_blob::merge(blobs))
{
auto pos = b.effective_pos();
- Vec2f p((pos[0] - W/2)/W, -(pos[1] - H/2)/W);
- points.push_back(p);
+ points.push_back(pos);
}
vector<Mat> channels_;