Skip to content

Reworked HSV color conversion tables initialization for OpenCL branch#27287

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
asmorkalov:as/hsv_init
May 12, 2025
Merged

Reworked HSV color conversion tables initialization for OpenCL branch#27287
asmorkalov merged 1 commit intoopencv:4.xfrom
asmorkalov:as/hsv_init

Conversation

@asmorkalov
Copy link
Copy Markdown
Contributor

Fixes #24443
Replaces #24444

C++11 and upper guaranties that local static variables are initialized once in thread safe way.

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
  • 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

@asmorkalov asmorkalov added this to the 4.12.0 milestone May 5, 2025
@asmorkalov asmorkalov changed the title Reworked HSV color conversion tables initialization for OpenCL branch. Reworked HSV color conversion tables initialization for OpenCL branch May 5, 2025
@asmorkalov
Copy link
Copy Markdown
Contributor Author

cc @kallaballa

@asmorkalov asmorkalov merged commit 59a17bc into opencv:4.x May 12, 2025
27 of 28 checks passed
@asmorkalov asmorkalov mentioned this pull request May 27, 2025
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.

Use static thread_local instead of a function scope static variables in oclCvtColorBGR2HSV (color_hsv.dispatch.cpp)

2 participants