summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-09-27 10:55:22 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-03-29 00:04:47 +0200
commite564fb5aef65cbae9898cd6b1c6c793f43b69b1c (patch)
treeb9d19c69f3c792b7f71c0cd1e6c507fa6381d3eb
parentdd3384edb253c474df054321e2cce7dbab6cc2ce (diff)
tracker/trackhat: fix reverse X coordinate
-rw-r--r--tracker-trackhat/extractor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-trackhat/extractor.cpp b/tracker-trackhat/extractor.cpp
index 5e50b4b4..aa4d38ef 100644
--- a/tracker-trackhat/extractor.cpp
+++ b/tracker-trackhat/extractor.cpp
@@ -20,7 +20,7 @@ void trackhat_extractor::extract_points(const pt_frame& data,
if (pt.m_brightness == 0)
continue;
constexpr int sz = trackhat_camera::sensor_size;
- auto [ x, y ] = to_screen_pos(pt.m_x, pt.m_y, sz, sz);
+ auto [ x, y ] = to_screen_pos(sz-1-pt.m_x, pt.m_y, sz, sz);
points.push_back({x, y});
}
}