Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can't use at method with GpuMat in CPU code. GpuMat data is located in GPU memory and can't be accessed from CPU code. You can only download data to host, modify it on host and upload back to GPU. Or implement your own CUDA kernel.

There is no expressions like +, -, *, / and zeros for GpuMat. But it is just a syntax sugar, you can use add, subtract, multiply, divide and setTo functions for that purpose.