Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can't iterate GpuMat data in host code. GpuMat data is stored in GPU memory and can be accessed only from GPU code. If you want to fill GpuMat you must:

  • fill Mat object in CPU code and upload it.

OR

  • write your own CUDA kernel.