From f67d4852bf3845febbb28f330aa5365af65195ba Mon Sep 17 00:00:00 2001 From: chacha21 Date: Thu, 1 Aug 2024 10:00:31 +0200 Subject: [PATCH] Added no-imp placeholder when HAVE_CUDA is false --- modules/core/src/cuda_gpu_mat.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/core/src/cuda_gpu_mat.cpp b/modules/core/src/cuda_gpu_mat.cpp index a245b1a293..84b5b210d1 100644 --- a/modules/core/src/cuda_gpu_mat.cpp +++ b/modules/core/src/cuda_gpu_mat.cpp @@ -420,6 +420,11 @@ void cv::cuda::GpuMat::setDefaultAllocator(Allocator* allocator) throw_no_cuda(); } +GpuMat::Allocator* cv::cuda::GpuMat::getStdAllocator() +{ + return 0; +} + void cv::cuda::GpuMat::create(int _rows, int _cols, int _type) { CV_UNUSED(_rows);