Using OpenCL on Image processing. Error in WarpAffine

in-place is suitable for few algorithms.

for most algorithms, “asking for” in-place is impossible, even in principle.

warpAffine is one such function. if it supports in-place, that’ll surely translate to an internal allocation.

you can keep buffers (mats, umats) around for as long as you need. the simplest way forward is to have two buffers, and use them in turn.