Description
Hopefully it is very easy, since there was a similiar, already solved issue: #132
#132
Error here:
When using cuda.warpPerspective function, there is an error raised:
You should explicitly call download method for cuda::GpuMat object
I copy the solution suggestion that seemed to work for that other issue:
From my findings this error is due to a wrong wrapping of transform matrix passed to openCV.
Currently, in file torch-opencv/src/cudacarping.cpp, lines 46, 52, 55, the transform matrix M is converted to a GPU matrix by: M.toGpuMat().
Converting M in a "CPU" matrix via M.toMat() leads to a working version.
(openCV uses only coefficients of that matrix - see openCV source code of warp.cpp)
@shrubb: Since you have/had no GPU to test this, it sounds probable for me, that it is the reason here as well.
Btw: CPU Version of warpPerspective is running fine.
Thanks in advance!