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?