summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/point_extractor.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-21 20:00:30 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-21 20:34:30 +0200
commit0cbf400004e94b626195b4938a0ccb942cf45b80 (patch)
tree203819621e34761cce64e6e2794aa3be29b00c7c /tracker-pt/point_extractor.cpp
parent337c6718f5b3b3cd98d12fdb9d0bd7c409beefe0 (diff)
tracker/pt: fix harmless fencepost error
Diffstat (limited to 'tracker-pt/point_extractor.cpp')
-rw-r--r--tracker-pt/point_extractor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tracker-pt/point_extractor.cpp b/tracker-pt/point_extractor.cpp
index 0fd177e0..26bbe2f3 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<vec2>& points)
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;