Hi guys,
I want use VPI library for Image processing.
“vpiImageSetWrappedOpenCVMat” function sets a OpenCV Mat to existing VPIImage without copy.
function “vpiImageCreateOpenCVMatWrapper” creats a VPIImage and copy content of existing OpenCV Mat to VPIImage with copy.
so my question is how to do it with OpenCV GPU Mat? I want a function like this to wrap OpenCV GPU Mat to VPI Image without copy (directly from GPU Mat to VPIImage).
Thanks so much.
Hi,
If you can get the CUDA buffer of gpuMat, please wrap it with the following API:
vpiImageCreateCUDAMemWrapper()
https://docs.nvidia.com/vpi/1.2/group__VPI__CUDAInterop.html#ga6ce74aeb640d88042779f70e864ba75f
Thanks.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.