summaryrefslogtreecommitdiffhomepage
path: root/tracker-trackhat/frame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-trackhat/frame.cpp')
-rw-r--r--tracker-trackhat/frame.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tracker-trackhat/frame.cpp b/tracker-trackhat/frame.cpp
index d8fae002..0e97ed0e 100644
--- a/tracker-trackhat/frame.cpp
+++ b/tracker-trackhat/frame.cpp
@@ -114,9 +114,10 @@ void trackhat_frame::init_points(const trackHat_ExtendedPoints_t& points_, doubl
if (pt.m_area >= min_size && pt.m_area <= max_size)
p.ok = true;
+ constexpr f c = (f)2941/trackhat_camera::sensor_size;
p.brightness = pt.m_averageBrightness;
- p.area = pt.m_area;
+ p.area = pt.m_area * c;
p.W = std::max(1, pt.m_boundryRigth - pt.m_boundryLeft);
p.H = std::max(1, pt.m_boundryDown - pt.m_boundryUp);
p.x = trackhat_camera::sensor_size-1-pt.m_coordinateX;