First time here? Check out the FAQ!
answered 2012-12-19 05:41:12 -0600
CudaMem has can be implicitly converted to Mat object
CudaMem cm(100, 100, CV_8UC1); Mat mat_hdr = cm; someFunc(mat_hdr);
This operation doesn't copy data, it just create Mat header for CudaMem data.