Skip to content

line_descriptor: enable __popcnt intrinsic for knn_match function - #4152

Open
pratham-mcw wants to merge 1 commit into
opencv:4.xfrom
pratham-mcw:knn_matching_opt_
Open

line_descriptor: enable __popcnt intrinsic for knn_match function#4152
pratham-mcw wants to merge 1 commit into
opencv:4.xfrom
pratham-mcw:knn_matching_opt_

Conversation

@pratham-mcw

Copy link
Copy Markdown
Contributor
  • This PR optimizes the popcnt implementation used by the line_descriptor module.
  • Currently, ARM64 uses scalar implementation and this change enables the use of the hardware __popcnt intrinsic, while preserving the existing scalar implementation as a fallback.
  • The optimization improves the performance of the knn_match function and also benefits several other functions in the line_descriptor module that rely on the same popcnt implementation.

Performance Benchmarks:
image

  • 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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant