Name
rtshg - rotate and shift a 2D image using the gridding method
Usage
- output = rtshg (image, alpha, sx, sy, scale)
Input
- image
- a 2D input image
- alpha
- rotation angle
- sx
- x shift (default = 0.0)
- sy
- y shift (default = 0.0)
- scale
- magnification change (default = 1.0)
Output
- output
- the output rotated and shifted image
Method
The rotation is performed first, second the shift (in one interpolation step). The scale will change the 'physical pixel size' of the image (scale >1 will reduce the pixel size, scale<1 will increase it). Note rescaling will not change the image size in pixels; to do that, use command resample.
- Operation
- output = rtshg (input, alpha, sx, sy)
- corresponds to:
- temp = rtshg (input, alpha)
- output = rtshg (temp, 0, sx, sy)
Author/Maintainer
Pawel A. Penczek
Keywords
- category 1
- FUNDAMENTALS
- category 2
- SPATIAL
Files
- fundamentals.py
See also
Maturity
- Perfect
Bugs
- perfect