polyTEM.tomography.alignment.find_alignment_error¶
- polyTEM.tomography.alignment.find_alignment_error(x_coords, y_coords, num_images, num_particles, tilt_angles, method='explicit')¶
Finds the rotation angle and image displacement by aligning markers
Uses the alignment procedure developed by Zhongqi Jing and Frederick Sachs, 1990 https://www-sciencedirect-com.stanford.idm.oclc.org/science/article/pii/0304399191900425?via%3Dihub by solving linear equations
- Parameters:
x_coords – numpy array shape (num_images,num_particles),
y_coords – numpy array shape (num_images,num_particles,),
num_images – int
num_particles – int,total number of gold particles
tilt_angles – numpy array shape (num_images,) of tilt angles, in RADIANS
method – ‘explicit’ or ‘lu’ solve