Every pixel has its own time
Times are in seconds. A positive stage drift lowers the specimen coordinate that the probe samples. Changing the order of the rows changes the distortion.
E09 · Electron acquisition / diffraction
Can aligning repeated frames undo the distortion that drift causes in a scanned image? Only partly. Aligning frames on features that vary in both directions corrects the shift from one frame to the next. A featureless surface gives nothing to align on, and parallel stripes leave the shift along them undetermined. One shift per frame also cannot fix distortion that happens within a frame.
Acquire a stack of frames, estimate how far each frame has shifted from its counts and compare the plain average with the aligned result. Then try to break the estimate with stripes, a featureless surface, slow scanning and a narrow search window.
Physics tutorial
BackgroundYou acquire a stack of fast frames, estimate from the recorded counts how far each frame has shifted, and compare the plain average with the aligned result. The motion the simulator actually applied is known, but it is used only as a separate check.
Why it mattersAn average can look sharp and still be built on wrong shifts, carry the distortion of the first frame or show aliased detail.
Start with the essentials
Times are in seconds. A positive stage drift lowers the specimen coordinate that the probe samples. Changing the order of the rows changes the distortion.
A is the filtered first frame and B is a filtered stored frame. The window stays fixed inside the image, so nothing wraps around the edges. A coarse search followed by local subpixel refinement can miss a competing peak. Thresholds set for teaching reject estimates that are weak, ambiguous or at the edge of the search range.
Only accepted frames are averaged, with their original counts resampled by bilinear interpolation. Pixels outside the area that every accepted frame covers are masked. The first frame is always kept as the coordinate reference; it was never checked as a match itself. To sample the 6 nm grating, the pixel spacing must be strictly below 3 nm.
Typical misconceptionIf a match has high correlation and passes the checks, it must be accurate.
Better mental modelThe acceptance thresholds are rules of thumb, not probabilities or calibrated error bars. That is why the task also checks whether every frame was accepted, the sampling, the motion within each frame and the common coverage.
Typical misconceptionAlignment gives back the true, undistorted specimen coordinates.
Better mental modelThe first recorded frame sets the origin and keeps its own distortion. The estimator is never given the absolute drift or the ideal specimen.
Load Recovery target, change the dwell time and confirm that the stored images do not change. Click Acquire next frames, then Estimate and align.
What to observe: The acquisition controls set up the next stack. The search radius takes effect the next time the same counts are processed. The alignment toggle only changes what is displayed.Compare the assigned first-to-last motion with the estimated horizontal and vertical shifts. Turn the alignment display off and on without acquiring again.
What to observe: The estimated shifts come from image correlation, so they carry errors from count noise and from the model. They are measured relative to the first frame, and the motion within each frame is still there.Load Periodic ambiguity, No landmarks and Search too narrow. Read the number of frames used together with the common coverage. Then try Slow drifting scan and Interlaced scan.
What to observe: A coverage of 100 percent can mean that only the reference frame was kept. Rejected frames are left out of the aligned average. A high image correlation does not prove that the shift is spatially accurate.Load Aliasing, reduce the pixel spacing to 2 nm, then acquire and process again.
What to observe: Neither more frames nor interpolation can restore a grating that was undersampled. A shift estimate can pass even when the fine detail is aliased.