OpenCV3: where has cv::cuda::Stream::enqueueUpload() gone?

前端 未结 1 1695
栀梦
栀梦 2021-01-06 11:48

In former versions of OpenCV there was the function Stream::enqueueUpload that could be used to upload data to the GPU asynchronously together with CudaMe

相关标签:
1条回答
  • 2021-01-06 12:35

    It can be done now via void GpuMat::upload(InputArray arr, Stream& stream) method:

    cv::cuda::GpuMat d_mat;
    cv::cuda::HostMem h_mat;
    cv::cuda::Stream stream;
    d_mat.upload(h_mat, stream);
    
    0 讨论(0)
提交回复
热议问题