Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create GpuMat from Existing Cuda Pointer #892

Open
Aidan63 opened this issue Nov 15, 2023 · 2 comments
Open

Create GpuMat from Existing Cuda Pointer #892

Aidan63 opened this issue Nov 15, 2023 · 2 comments

Comments

@Aidan63
Copy link

Aidan63 commented Nov 15, 2023

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.

@emgucv
Copy link
Owner

emgucv commented Nov 16, 2023

Fixed in this commit: 2c4d821

Will be included in the next release

@Aidan63
Copy link
Author

Aidan63 commented Nov 21, 2023

Excellent, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants