answered Dec 1 '13
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:
GpuMat
Mat
upload
OR