Closed
Description
When using cuda.warpAffine function, there is an error raised:
You should explicitly call download method for cuda::GpuMat object
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)