Convert directly data from nvBufSurface to nvcvImage or on CVCUDA

I am writing a callback function for a deepstream-app. I want to get images from a nvBufSurface and process it directly on GPU using CVCUDA libs. How can I do in order to convert image format to the format that CVCUDA can manipulate?

This thread should be helpful with answering your question: How to convert NvBufSurface to cv::cuda::GpuMat? - #2

1 Like

Thanks so much. But converting to cv::GpuMat (of OpenCV cuda) is not my problem. My target format is CVCUDA (of NVIDIA)