Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This looks like it's shrinking the image by a factor of 2, and a sub-pixel offset.

Just create an affine matrix using getRotationMatrix2D and use warpAffine to do the actual warping. The results of the interpolation won't be exactly the same, but it should be essentially the same.