polyTEM.image.drift.correct_data

polyTEM.image.drift.correct_data(data, x_drift, y_drift, max_drift_allowed, save_array='')

Corrects drift across frames in data

Parameters:
  • data – Image Dose-Fractionated Frames

  • x_drift – List with drift in x-direction for each frame

  • y_drift – List with drift in y-direction for each frame

  • max_drift_allowed – int, threshold for drift tolerance

  • save_array – filename to save final array

Returns:

data frames with drift corrected img_corrected: sum of data_corrected

Return type:

data_corrected