diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-21 20:00:30 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-21 20:17:15 +0200 |
commit | 375aaa346f84345fcdeb6b8e99c709674b9d5814 (patch) | |
tree | a7c5e767d0ea92fcec1495c6cb142591fadc89d9 /tracker-pt | |
parent | 9366de846d8c6e9c14f0dea0d668672dc4293e05 (diff) |
tracker/pt: fix harmless fencepost error
Diffstat (limited to 'tracker-pt')
-rw-r--r-- | tracker-pt/point_extractor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tracker-pt/point_extractor.cpp b/tracker-pt/point_extractor.cpp index 192beacd..6284f053 100644 --- a/tracker-pt/point_extractor.cpp +++ b/tracker-pt/point_extractor.cpp @@ -90,12 +90,12 @@ void PointExtractor::extract_points(cv::Mat& frame, std::vector<cv::Vec2d>& poin unsigned idx = 0; for (int y=0; y < frame_blobs.rows; y++) { - if (idx > max_blobs) break; + if (idx >= max_blobs) break; const unsigned char* ptr_bin = frame_blobs.ptr(y); for (int x=0; x < frame_blobs.cols; x++) { - if (idx > max_blobs) break; + if (idx >= max_blobs) break; if (ptr_bin[x] != 255) continue; |