1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Merge pull request #28091 from ParalYAO:fix/brisk/descriptor-calculation-pointer-bug

fix(features2d): Correct pointer arithmetic in BRISK corner traversal
This commit is contained in:
Alexander Smorkalov
2025-12-01 10:34:12 +03:00
committed by GitHub
+1 -1
View File
@@ -626,7 +626,7 @@ BRISK_Impl::smoothedIntensity(const cv::Mat& image, const cv::Mat& integral, con
ret_val = A * int(*ptr);
ptr += dx + 1;
ret_val += B * int(*ptr);
ptr += dy * imagecols + 1;
ptr += (dy + 1) * imagecols;
ret_val += C * int(*ptr);
ptr -= dx + 1;
ret_val += D * int(*ptr);