Skip to content

ximgproc: optimize Adaptive Manifold function for ARM64 #3980

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 4.x
Choose a base branch
from

Conversation

pratham-mcw
Copy link

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.

  • 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

  • The PR is proposed to the proper branch

  • This PR introduces an ARM64-specific performance optimization in AdaptiveManifoldFilter::h_filter by applying loop unrolling.

  • The optimization is guarded with #if defined(_M_ARM64) to ensure it only affects ARM64 builds.

  • The optimization does not affect accuracy and maintains the same numerical behavior as the original scalar implementation.

Performance Improvements :

  • The optimization significantly improves the performance of adaptive Manifold function on Windows ARM64 targets.
  • The table below shows timing comparisons before and after the optimization:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants