GpuMat extracted from larger GpuMat is not continuous.

asked 2015-02-20 06:37:58 -0500

kizmo gravatar image

I am extracting smaller GpuMat from GpuMat. The smaller GpuMat cannot be used in any further operation since it produces errors because its step value is not right (step value is the same as in oldMat but column and line numbers are different). How can i make the new GpuMat continuous again?

GpuMat newMat = GpuMat( oldMat.clone(), Rect( x, y, w, h));
edit retag flag offensive close merge delete