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.
Can aligning repeated frames undo the distortion that drift causes in a scanned image? Distinct features in both directions let you estimate frame-to-frame shifts. On a featureless surface both directions are ambiguous. Parallel stripes leave the shift along them undetermined. Any distortion that develops during a scan remains after the whole frame is shifted.
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.
BackgroundAcquire a stack of fast scans. Estimate each shift from the stored counts and compare the raw and aligned averages. Use the assigned drift as an independent check on the estimate.
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.
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.Reload Recovery target to restore the original dwell time. Use the two estimated components to work out the total shift, then compare it with Assigned first-to-last motion, which already shows a magnitude.
What to observe: The Recovery target preset accepts all eight frames. Its estimated last-frame components are 5 and 2 nm, a total of about 5.4 nm, compared with the assigned 4.38 nm. Acceptance and correlation alone leave room for position error.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: The newly sampled grating has three pixels per period. The original stack can pass the shift checks while still showing an aliased grating.