Ask Your Question
4

What is the reason for the apparent difference in the transforms applied by PyRotationWarper.warp and PyRotationWarper.warpPoint?

asked 2023-06-30 07:15:54 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-06-30 07:19:02 +0000

ladyg gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-30 07:15:54 +0000

Seen: 8 times

Last updated: Jun 30 '23