Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added xxxApprox overloads for YUV color conversions in HAL and AlgorithmHint to cvtColor#25932

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
asmorkalov merged 3 commits intoopencv:4.xfromasmorkalov:as/HAL_cvtColor_aprox
Aug 6, 2024

Conversation

@asmorkalov
Copy link
Contributor

@asmorkalovasmorkalov commentedJul 18, 2024
edited
Loading

The xxxApprox to implement HAL functions with less bits for arithmetic of FP.

The hint was introduced in#25792 and#25911

Pull Request Readiness Checklist

See details athttps://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
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@asmorkalovasmorkalov changed the titleAdded xxxApprox overloads for YUV color conversions in HAL and AlgorithmHint to cvtColorWIP: Added xxxApprox overloads for YUV color conversions in HAL and AlgorithmHint to cvtColorJul 18, 2024
@asmorkalov
Copy link
ContributorAuthor

Perf statistics for Jetson tk1 (ARMv7 NEON) and jetson orin:
perf-cvtcolor.zip
Looks like the HAL makes sense for old v7 chips only.

@asmorkalovasmorkalov changed the titleWIP: Added xxxApprox overloads for YUV color conversions in HAL and AlgorithmHint to cvtColorAdded xxxApprox overloads for YUV color conversions in HAL and AlgorithmHint to cvtColorJul 25, 2024
@param isCbCr if set to true write output in YCbCr format
Convert from BGR, RGB, BGRA or RGBA to YUV or YCbCr.
*/
inlineinthal_ni_cvtBGRtoYUVApprox(const uchar * src_data,size_t src_step, uchar * dst_data,size_t dst_step,int width,int height,int depth,int scn,bool swapBlue,bool isCbCr) {return CV_HAL_ERROR_NOT_IMPLEMENTED; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

why 'Approx' is in the function name? Why not pass algorithm hint as a parameter?

Copy link
ContributorAuthor

@asmorkalovasmorkalovJul 30, 2024
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The existing API is already used in 3rd party HAL like Carotene, KleidiCV and some other. So we need to in
introduce new API anyway. The solution just follows current HAL design.

@asmorkalov
Copy link
ContributorAuthor

@opencv-alalek Could you update ABI complience checker on BuildBot?

@asmorkalovasmorkalov merged commit49459d4 intoopencv:4.xAug 6, 2024
@asmorkalovasmorkalov mentioned this pull requestAug 6, 2024
fengyuentau pushed a commit to fengyuentau/opencv that referenced this pull requestAug 15, 2024
Added xxxApprox overloads for YUV color conversions in HAL and AlgorithmHint to cvtColoropencv#25932The xxxApprox to implement HAL functions with less bits for arithmetic of FP.The hint was introduced inopencv#25792 andopencv#25911### Pull Request Readiness ChecklistSee details athttps://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request- [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- [x] There is a reference to the original bug report and related work- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable      Patch to opencv_extra has the same branch name.- [x] The feature is well documented and sample code can be built with the project CMake
thewoz pushed a commit to CobbsLab/OPENCV that referenced this pull requestFeb 13, 2025
Added xxxApprox overloads for YUV color conversions in HAL and AlgorithmHint to cvtColoropencv#25932The xxxApprox to implement HAL functions with less bits for arithmetic of FP.The hint was introduced inopencv#25792 andopencv#25911### Pull Request Readiness ChecklistSee details athttps://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request- [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- [x] There is a reference to the original bug report and related work- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable      Patch to opencv_extra has the same branch name.- [x] The feature is well documented and sample code can be built with the project CMake
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@vpisarevvpisarevvpisarev approved these changes

@opencv-alalekopencv-alalekAwaiting requested review from opencv-alalek

Assignees

@vpisarevvpisarev

Projects

None yet

Milestone

4.11.0

Development

Successfully merging this pull request may close these issues.

2 participants

@asmorkalov@vpisarev

[8]ページ先頭

©2009-2025 Movatter.jp