Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can store GpuMat in vector. GpuMat and Mat is smart pointers to data with reference counting. It doesn't create copy of data in copy constructor:

GpuMat a(100,100,CV_8U);
GpuMat b = a; // b and a shares the same data