cv::cuda::warpPerspective corrupting GPU memory?

asked 2014-11-11 08:53:40 -0600

dtmoodie gravatar image


I have two warping functions to transform an image between two planes.

One of them projects each point from plane 1 to plane 2 by calculating the mapping for each point and then using cv::cuda::remap. This version works fine with everything else.

I recently created a version that uses cv::cuda::warpPerspective by sampling the mapping between the two planes and calculating a homography. This appears to work at first, but after a few iterations I start having issues with other cuda calls.

In particular cv::cuda::GpuMat::upload throws:

cstr_=0x000000003373bb04 "an illegal memory access was encountered"

Now it is possible that these are operating in parallel since the upload is running on a separate thread than the warpPerspective. I'm currently exploring restructuring so that the upload doesn't occur in parallel. However that doesn't explain why this works when I call cv::cuda::remap but not when I call cv::cuda::warpPerspective. Is this a bug in warpPerspective?

System: Windows 7x64 Opencv 3.0 alpha built from source CUDA 6.5 Quadro K6000, Driver 340.84

edit retag flag offensive close merge delete