Spliting GpuMat along a line

asked 2016-03-14 15:08:27 -0500

willoughby gravatar image

So I have and image and a line. I want to copy all of the pixel <vec3f> above the line into a GpuMat called sky and all the pixels below the line int a GpuMat called ground. I understand that I cannot iterate over a GpuMat the same way I can a normal mat. I am going to be seperating across every possible line one at a time so the fewer times that I transition between mat and GpuMat the better. Any advice?

edit retag flag offensive close merge delete