Name
rot_shift - rotate, shift, and scale a 2D or 3D image
- uses quadratic interpolation by default
Usage
- output = rot_shift (image, RA, method='quadrilinear')
Input
- image
- is a 2D or 3D image
- RA
is a Transform3D object
- method
- is the method to carry out the r/s/t; 'linear','quadrilinear', 'gridding' By linear is meant: trilinear in 3D, bilinear in 2D. Example in 2D:
>e=EMData();
>e.read_image('FN.spi',0);
>RA=Transform3D(0,0,45);
>f=rot_shift(e,RA);
Output
- output
- the input image is rotated, shfited, and scaled and is returned as output.
Description
Purpose: to apply rotation/shift/scaling to a 2D or 3D image via a variety of methods.
Author
P. R. Baldwin (also G. Goodyear wrote gridding)
Maintainer
P. R. Baldwin
Keywords
- category 1
- FUNDAMENTALS
- category 2
- SPATIAL
Files
- (sparx) fundamentals.py (rst)
- (libEM/sparx) emdata_sparx.cpp (rot_scale_trans )
See also
- References to relevant other routines.
Maturity
- alpha
Bugs
- only using quadratic interpolation right now 8/9/2006