Skip to content

Adding getStdAllocator() to cv::cuda::GpuMat#25978

Merged
asmorkalov merged 2 commits intoopencv:4.xfrom
chacha21:cuda_stdallocator
Aug 5, 2024
Merged

Adding getStdAllocator() to cv::cuda::GpuMat#25978
asmorkalov merged 2 commits intoopencv:4.xfrom
chacha21:cuda_stdallocator

Conversation

@chacha21
Copy link
Copy Markdown
Contributor

@chacha21 chacha21 commented Aug 1, 2024

To be on par with cv::Mat, let's add cv::cuda::GpuMat::getStdAllocator() This is useful anyway, because when a user wants to use custom allocators, he might want to resort to the standard default allocator behaviour, not some other allocator that could have been set by setDefaultAllocator()

  • 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

To be on par with `cv::Mat`, let's add `cv::cuda::GpuMat::getStdAllocator()`
This is useful anyway, because when a user wants to use custom allocators, he might want to resort to the standard default allocator behaviour, not some other allocator that could have been set by `setDefaultAllocator()`
@asmorkalov asmorkalov added category: core category: gpu/cuda (contrib) OpenCV 4.0+: moved to opencv_contrib labels Aug 1, 2024
@asmorkalov asmorkalov self-assigned this Aug 5, 2024
@asmorkalov asmorkalov added this to the 4.11.0 milestone Aug 5, 2024
@asmorkalov asmorkalov merged commit 9de2ebb into opencv:4.x Aug 5, 2024
@asmorkalov asmorkalov mentioned this pull request Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: core category: gpu/cuda (contrib) OpenCV 4.0+: moved to opencv_contrib

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants