mirror of
https://github.com/opencv/opencv.git
synced 2026-12-02 21:22:43 -06:00
imgproc: add simd support for calchist & calchist1d function - #28728 - This PR adds OpenCV SIMD intrinsics-based optimizations to the Calchist and calcHist1d function for improved performance on Windows-ARM64 platforms. - The optimized implementation uses vectorized operations to accelerate histogram computation. - In x64 architecture, `calcHist1d` benefits from IPP-based optimized implementations. However, on ARM64 platforms, the execution falls back to scalar implementation, which results in lower performance. - After introducing these changes, the calcHist and calchist1d function showed noticeable performance improvements on Windows-ARM64. **Performance Benchmarks:** <img width="1247" height="460" alt="image" src="https://github.com/user-attachments/assets/ed740d87-158e-49d4-889e-9c7dda482a63" /> <img width="552" height="210" alt="image" src="https://github.com/user-attachments/assets/76b9e46e-304e-480c-9a57-af0aba6e937a" /> - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch