diff --git a/modules/features2d/src/brisk.cpp b/modules/features2d/src/brisk.cpp index 3e80c5d9ed..d6e88a129e 100644 --- a/modules/features2d/src/brisk.cpp +++ b/modules/features2d/src/brisk.cpp @@ -2046,13 +2046,13 @@ BriskScaleSpace::subpixel2D(const int s_0_0, const int s_0_1, const int s_0_2, c if (max1 > max2) { delta_x = delta_x1; - delta_y = delta_x1; + delta_y = delta_y1; return max1; } else { delta_x = delta_x2; - delta_y = delta_x2; + delta_y = delta_y2; return max2; } }