emgucv icon indicating copy to clipboard operation
emgucv copied to clipboard

Create GpuMat from Existing Cuda Pointer

Open Aidan63 opened this issue 2 years ago • 2 comments

Hello,

Is there a way to create a GpuMat or GpuMat<T> from an existing cuda device pointer? I can see the C++ GpuMat class has constructors for user provided pointers but these don't seem to be exposed in the two C# classes. Use case for this is that once I map a Cuvid frame I get a device pointer and stride out and would like to wrap it in a GpuMat straight away instead of the extra copy I need to perform at the moment.

Thanks, Aidan.

Aidan63 avatar Nov 15 '23 11:11 Aidan63

Fixed in this commit: 2c4d8212adf8df3d3d4d60d2ed3f515c69d8b7dc

Will be included in the next release

emgucv avatar Nov 16 '23 19:11 emgucv

Excellent, thanks a lot!

Aidan63 avatar Nov 21 '23 10:11 Aidan63