Rotate in skimage2 conventions
Description:
Discussing the coordinate refactoring with Claude, the following problem came up. I wrote all this myself.
How should rotate (and swirl) behave in skimage2 conventions?
In skimage2, warp will consider input coordinates to be row, col (i, j) rather than col, row order. The upshot is that, in skimage2 - warp(img, SimilarityTransform(rotation=0.2)) will have the visual effect of rotating the image clockwise around its 0, 0 pixel, whereas in skimage2 the same code will rotate the image anti-clockwise.
However, what should rotate(img, 0.2) do? At the moment, this rotates the image counter-clockwise around the center of the image. This behavior then differs from the warp case.
However, we never stated that warp(img, SimilarityTransform(rotation=0.2)) should be interpreted in the same way as rotate(img, 0.2) (modulo the center of rotation). So one could argue that it would be reasonable to leave rotate (and similarly swirl) as specifically visual rotations, and therefore leave their behavior unchanged. I personally think it would be cleaner to make rotation mean the same thing in either case, so make rotate (swirl) reverse direction in skimage2.
What do y'all think?
Source: scikit-image/scikit-image