FourierRotation
- class hcipy.fourier.FourierRotation(input_grid, angle)
Bases:
object
An image rotation operator implemented in the Fourier domain.
This operator is implemented using three consecutive shearing operations. For rotations larger than 45 degrees, the individual shears do not work anymore. For those larger rotations, we instead use multiple smaller rotations.
- Parameters:
- input_gridGrid
The grid that is expected for the input field.
- anglescalar
The rotation angle in radians.
- Raises:
- ValueError
When the input grid is not 2D and regularly spaced.
Attributes Summary
Methods Summary
backward
(field)Return the backward (adjoint) rotation of the input field.
forward
(field)Return the forward rotation of the input field.
Attributes Documentation
- angle
Methods Documentation
- backward(field)
Return the backward (adjoint) rotation of the input field.
- Parameters:
- fieldField
The field to rotate.
- Returns:
- Field
The adjoint rotated field.
- forward(field)
Return the forward rotation of the input field.
- Parameters:
- fieldField
The field to rotate.
- Returns:
- Field
The rotated field.