Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The reason for the apparent difference in the transforms applied by PyRotationWarper.warp and PyRotationWarper.warpPoint is because PyRotationWarper.warp applies a transformation to an entire image, whereas PyRotationWarper.warpPoint applies a transformation to a single point.

The PyRotationWarper.warp method takes an image as input and applies a rotation, translation and scale transformation to the entire image, resulting in a transformed output image. In contrast, the PyRotationWarper.warpPoint method takes a single point as input and applies the same transformation, resulting in a transformed output point.

Therefore, although both methods use the same transformation matrix, they appear to produce different results due to the difference in input type and output type.