diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-04-13 18:23:12 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-04-13 18:23:12 +0200 |
commit | 0965d3497d4251797c7e372854d7024343c871ec (patch) | |
tree | 33e6a31bcfb4b7a4487ac15f3cf35b9345d915d5 /tracker-wii/wii_point_extractor.cpp | |
parent | 2db8470c4a26f0662927d3f96e306b7c56d85264 (diff) |
tracker/wii: fix opencv assert
Issue: #876
Diffstat (limited to 'tracker-wii/wii_point_extractor.cpp')
-rw-r--r-- | tracker-wii/wii_point_extractor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-wii/wii_point_extractor.cpp b/tracker-wii/wii_point_extractor.cpp index 564c5ad0..55420300 100644 --- a/tracker-wii/wii_point_extractor.cpp +++ b/tracker-wii/wii_point_extractor.cpp @@ -79,7 +79,7 @@ bool WIIPointExtractor::_draw_points(cv::Mat& preview_frame, const struct wii_in std::tie(dt[0], dt[1]) = to_screen_pos(RX, RY, W, H); points.push_back(dt); - _draw_point(preview_frame, dt, cv::Scalar(0, 255, 0), dot.isize); + _draw_point(preview_frame, dt, cv::Scalar(0, 255, 0), clamp(dot.isize, 1, 32)); } } const bool success = points.size() >= PointModel::N_POINTS; |