Name

rot_shift2D - Rotate, shift, and re-scale a 2-D image.

Usage

output = rot_shift2D(image, alpha, sx, sy, "quadratic", scale)

Input

image
input image
alpha

in plane rotation angle (Note this angle is different from Euler in plane angle psi). Check I O about 2D & 3D alignment parameter related conventions

sx
2-D x shift
sy
2-D y shift
interpolation_method
interpolation method used to transform the image (default is set to "quadratic" in global_def.py).
scale

re-scale size ratio after applying rotation. The scale will change the 'physical pixel size' of the image (scale >1 will reduce the pixel size, scale<1 will increase it). Note re-scaling will not change the image size in pixels; to do that, use command resample.

  • Attention: scale cannot be set as 0.
  • Output

    output
    the transformed image

    Options

    interpolation_method
    • "linear" use linear interpolation to sample the rotated image
    • "quadratic" use quadratic interpolation to sample the rotated image
    • "gridding" use gridding to sample the rotated image ( This method is very slow )

    Description

    Author / Maintainer

    Zhong Huang

    Keywords

    category 1
    FUNDAMENTALS

    Files

    fundamentals.py

    See also

    rtshg, rot_shift3D

    Reference

    Maturity

    stable
    works for most people, has been tested; test cases/examples available.

    Bugs

    None. It is perfect.

    rot shift2D (last edited 2008-08-20 15:44:58 by penczek)