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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user