1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

cuda: add python bindings to allow GpuMat and Stream objects to be initialized from raw pointers

This commit is contained in:
cudawarped
2023-03-17 16:31:51 +02:00
parent 97c021b17a
commit 7539abecdb
3 changed files with 45 additions and 0 deletions
+9
View File
@@ -586,6 +586,15 @@ Stream cv::cuda::StreamAccessor::wrapStream(cudaStream_t stream)
#endif
Stream cv::cuda::wrapStream(size_t cudaStreamMemoryAddress) {
#ifndef HAVE_CUDA
CV_UNUSED(cudaStreamMemoryAddress);
throw_no_cuda();
#else
return cv::cuda::StreamAccessor::wrapStream(reinterpret_cast<cudaStream_t>(cudaStreamMemoryAddress));
#endif
}
/////////////////////////////////////////////////////////////
/// StackAllocator