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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user