mirror of
https://github.com/zebrajr/opencv.git
synced 2026-01-15 12:15:17 +00:00
fix(features2d): Correct pointer arithmetic in BRISK corner traversal
The pointer offset to move from top-right to bottom-right was incorrect. This change corrects the pointer calculation to use the proper row stride, ensuring it lands on the correct pixel.
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