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:34:30 +0200 | 
| commit | 0cbf400004e94b626195b4938a0ccb942cf45b80 (patch) | |
| tree | 203819621e34761cce64e6e2794aa3be29b00c7c | |
| parent | 337c6718f5b3b3cd98d12fdb9d0bd7c409beefe0 (diff) | |
tracker/pt: fix harmless fencepost error
| -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 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;  | 
