Skip to content

Commit

Permalink
Help #173
Browse files Browse the repository at this point in the history
  • Loading branch information
shrubb committed Jan 27, 2017
1 parent 94243b5 commit 27db893
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cudawarping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,16 @@ struct TensorWrapper warpPerspectiveCuda(struct cutorchInfo info,
{
if (dst.isNull()) {
cuda::GpuMat retval;
cuda::warpPerspective(src.toGpuMat(), retval, M.toGpuMat(), dsize,
cuda::warpPerspective(src.toGpuMat(), retval, M.toMat(), dsize,
flags, borderMode, borderValue, prepareStream(info));
return TensorWrapper(retval, info.state);
} else if (dst.tensorPtr == src.tensorPtr) {
// in-place
cuda::GpuMat source = src.toGpuMat();
cuda::warpPerspective(source, source, M.toGpuMat(), dsize, flags,
cuda::warpPerspective(source, source, M.toMat(), dsize, flags,
borderMode, borderValue, prepareStream(info));
} else {
cuda::warpPerspective(src.toGpuMat(), dst.toGpuMat(), M.toGpuMat(),
cuda::warpPerspective(src.toGpuMat(), dst.toGpuMat(), M.toMat(),
dsize, flags, borderMode, borderValue, prepareStream(info));
}
return dst;
Expand Down

0 comments on commit 27db893

Please sign in to comment.