polyTEM.tomography.alignment.shift_markers

polyTEM.tomography.alignment.shift_markers(x_coords, y_coords, rot_angles, dx, dy)

Use approximate solution from find_alignment_errors to align markers

Parameters:
  • x_coords – numpy array shape (num_images,num_particles)

  • y_coords – numpy array shape (num_images,num_particles,)

  • rot_angles – numpy array shape (num_images,) containing rotation alignment, in radians

  • dx – numpy array shape (num_images,) containing shift in x

  • dy – numpy array shape (num_images,) containing shift in y

Returns:

numpy array shape (num_images,num_particles,2) containing

Return type:

shifted_coords