Name
rotshift2dg - rotate and shift a 2D image using the gridding method
Usage
- nx=image.get_xsize()
- kb = kbt(nx)
- output = rotshift2dg (image, alpha, sx, sy, kb, scale)
Note: calculation of interpolants is separated from the actual image transformation 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.
Input
- . image
- a 2D input image
- . alpha
- rotation angle
- . sx
- x shift
- . sy
- y shift
- . kb
- interpolants
- . scale
- magnification change (default = 1.0)
Output
- output
- the output rotated and shifted image
Author/Maintainer
Pawel A. Penczek
Keywords
- category 1
- FUNDAMENTALS
- category 2
- SPATIAL
Files
- fundamentals.py
See also
Maturity
- Perfect
Bugs
- perfect