emgucv
emgucv copied to clipboard
Create GpuMat from Existing Cuda Pointer
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.
Fixed in this commit: 2c4d8212adf8df3d3d4d60d2ed3f515c69d8b7dc
Will be included in the next release
Excellent, thanks a lot!