-
Notifications
You must be signed in to change notification settings - Fork 741
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
GpuMat get put #757
Comments
Use indexers for that:
http://bytedeco.org/news/2014/12/23/third-release/
|
If you have any additional questions, feel free to ask! Thanks |
And then these constructors can be used to transfer data between Mat and GpuMat: |
Thank you for telling me. I didn't know converting from both formats is that easy. I used convertTo but the method you suggest is easier and cleaner as well. I do have some problems trying to run my program due to the fact that it says it is not compiled with cuda. How can I compile it with cuda with the stable branch or is it easier to use the snapshot build? Do I need to ask that in a new issue? |
You'll need to add a few more artifacts to get the CUDA-enabled binaries: |
I added the artifacts but it seems that there are no arm64 artifacts for cuda and opencv-gpu. The goal is to run this on a Jetson TX2. |
Not yet, no, but it's possible to build from source. See issue #735. |
Hello,
I am trying to use this library because of the gpu support with Java but I am stuck on some code.
In the opencv library there are .get(row,col) and .put(row, col, data) functions. How can I get and put data in a GpuMat or do I need to convert it to a normal Mat?
Here are some code examples of what I am trying to do.
Function used
public double[] get(int row, int col)
Function used
public int put(int row, int col, double... data)
The text was updated successfully, but these errors were encountered: