diff options
author | AlejandroColomar <colomar.6.4.3@gmail.com> | 2018-11-08 12:45:00 +0100 |
---|---|---|
committer | AlejandroColomar <colomar.6.4.3@gmail.com> | 2018-11-08 12:45:00 +0100 |
commit | c9fa7a5311d49ccd83a1ebd79e6fbdadaa86072a (patch) | |
tree | 7f6c890abb3892f1a68b01dea354f7a877e6ab41 | |
parent | 8d335244c3fdf0c383351449f3737c919cd9abf6 (diff) |
Fix bug in local_maxima
-rw-r--r-- | modules/image/src/img_alx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/image/src/img_alx.cpp b/modules/image/src/img_alx.cpp index 4ed61ba..e805249 100644 --- a/modules/image/src/img_alx.cpp +++ b/modules/image/src/img_alx.cpp @@ -80,7 +80,7 @@ static void img_alx_local_max (class cv::Mat *imgptr) for (k = i - dist_min; (k < i + dist_min+1) && local_max; k++) {
for (l = j - dist_min; (l < j + dist_min+1) && local_max; l++) {
near_pix = imgptr->data + k * imgptr->step + l;
- if (j >= 0 && j < imgptr->rows) {
+ if (k >= 0 && k < imgptr->rows) {
if (l >= 0 && l < imgptr->cols) {
if (*img_pix < *near_pix) {
local_max = false;
|