HOME GUIDE OPERATIONS DOCS FAQ TECHNIQUES FORMATS INSTALL NEW TIPS WEB LINKS WADSWORTH

AP MS - Alignment - multi-reference, shift alignment ||

(2/22/08)

PURPOSE

Calculates translational differences with additional check of 180 degrees rotation between experimental images and a series of reference images. Determines translational parameters to align the experimental image with the "most similar" reference image.
(See align_overview.html for comparison of 'AP' operations.) Warning: This operation gives incorrect sub-pixel shifts, (the pixel shifts are OK). I suggest that you do not use the operation, AL Feb 2008).

SEE ALSO

AP RA [Alignment - Reference-free rotational alignment ||]
AP SA [Alignment - Reference free, Shift ||]
AP SR [Alignment - reference free, Shift & Rotation ||]
PJ 3Q [Project - 3D volume using Eulerian angles ||]

USAGE

.OPERATION: AP MS

.ENTER TEMPLATE FOR REFERENCE IMAGE SERIES: REF***
[Give the template name of the existing file series of 2D reference images (typically projections).]

.ENTER FILE NUMBERS OR SELECTION DOC. FILE NAME: SELECTREF
[Enter numbers of reference files. The file numbers can also be read from a selection document file where file numbers are contained in the first register (not the keys).]

.TRANSLATION SEARCH RANGE X and Y: 6,2
[The search for translation parameters will be restricted to +/- search range.

.ENTER TEMPLATE FOR IMAGE SERIES TO BE ALIGNED: DAT***
[Give the template name of the existing file series of experimental images. These images will be checked for alignment versus the reference images.]

.ENTER FILE NUMBERS OR SELECTION DOC. FILE NAME: 1-21
[Enter numbers of experimental images. The file numbers can also be read from a selection document file where file numbers are contained in the first register (not the keys).]

.OUTPUT DOCUMENT FILE NAME: PARM101
[This is the only output produced by this program. It contains 5 columns for each aligned image:

1. Number of the most similar reference projection.

2. Normalized correlation coefficient.
Can be used as a similarity measure.

3. Angle.
Rotation determined is either 0 or 180 degrees.

3. X-shift.
X translation determined.

4. Y-shift.
Y translation determined.

5. Experimental projection number.]

NOTES

  1. This program performs the following sequence of operations for each image:
    - Ramp (2D linear trend) is subtracted
    - Image is normalized (average is set to zero and Std. Dev to one.
    - Image is padded with zeroes to twice its size
    - Cross-correlation is calculated and normalized by factors (image size - lag)
    If the best match was for an image rotated by 180 degrees, then the number stored in the first column of the document file is negative.

  2. Alignment parameters (angle and translation included in columns 3-4 of the output document file) can be used in command 'RT SQ' to align images.

  3. Implemented by: Paul Penczek.

SUBROUTINES

MULTISHIFT

CALLER

UTIL4
Example of SPIDER procedure implementing alignment of 
projections following use of 'AP MS'

;Rotate/ shift images according to the parameters from 'AP MS' alignment

DO  X55=1,900
   UD IC,X55,X21,X22,X23,X24,X25
   docapmq

   RT SQ
   win/ser{****x26}
   ali/sar{****x26}
   X23
   X24,X25
ENDDO
EN 

© Copyright Notice /       Enquiries: spider@wadsworth.org

BACK TO SPIDER BACK TO WADSWORTH