Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cv::Rect has next constructor:

Rect(int x, int y, int width, int height);

Correct code (swap last two parameters):

GpuMat roi(gm, Rect(0, 0, gm.cols-1, gm.rows-1);