Skip to main content
Sandbox Physics

E37 · Electron imaging

4D-STEM: One Scan, Many Virtual Images

What can you learn by recording a full diffraction pattern at every probe position? Many different images from a single scan. The full diffraction pattern is saved at every probe position, so afterwards you can choose which detector pixels to add up and build bright-field, dark-field or other virtual images. The positions of the diffraction disks also give the crystal orientation and how much the lattice has stretched, limited by disk spacing, angular sampling and counts.

Move the probe across two grains and look at the diffraction frame recorded at each spot, then rotate a virtual detector after the scan is done. Once the disks are separated, the same counts give each grain's orientation and lattice dilation. You trade off convergence angle, camera length, scan sampling, dose and data size.

Interactive model4D-STEM: One Scan, Many Virtual Images
Recovered orientation—\text{—}
Recovered lattice dilation—\text{—}
Valid lattice estimates—\text{—}
Right-minus-left virtual contrast—\text{—}
More measurements and target
Four data axes—\text{—}
Stored count cube—\text{—}
Selected acquired coordinate—\text{—}
Selected frame · recorded counts—\text{—}
Expected detector coverage—\text{—}
Incident scan dose—\text{—}
Experiment target—\text{—}

Physics tutorial

Four axes, one measurement history

BackgroundThe probe moves over the specimen in two directions, and at every position a pixelated detector records the scattered electrons over two angles. Keeping all four axes lets one acquisition answer several questions.

Why it mattersA conventional detector throws angle information away while it records. A virtual detector picks the angles afterward, but it cannot bring back clipped angles, counts that were never collected or scan positions that were never recorded.

Start with the essentials

Focus question
What can you learn by recording a full diffraction pattern at every probe position?
One-sentence intuition
Changing a virtual aperture only re-sums the recorded pixels and adds no electron exposure; orientation and dilation come from measured disk positions and are limited by disk separation, angular sampling and counts.

Core mathematical model

Four independent data axes

Dijmn=D(xi,yj,θx,m,θy,n)D_{ijmn}=D(x_i,y_j,\theta_{x,m},\theta_{y,n})

The first two axes give the probe position and the last two give a detector pixel. The readout shows the memory actually used to store the uint32 counts, without metadata or compression.

A virtual detector sums acquired counts

Vij=∑m,nMmnDijmn,Mmn∈{0,1}V_{ij}=\sum_{m,n}M_{mn}D_{ijmn},\qquad M_{mn}\in\{0,1\}

The green mask selects whole recorded detector pixels. A central mask gives a bright-field image, and a displaced mask picks out one first-order disk. The mask edge follows pixel boundaries; it is not a smooth physical aperture.

Camera length converts angle to position

r=Lθ,θB≃λar=L\theta,\qquad \theta_B\simeq\frac{\lambda}{a}

The detector is 12 mm wide. A longer effective camera length samples angles more finely but covers a smaller angular range. Here the square lattice appears as the direct beam plus four assumed first-order disks.

Scalar dilation from four Bragg centroids

ε=θB,refθ‾B,meas−1\varepsilon=\frac{\theta_{B,\mathrm{ref}}}{\overline{\theta}_{B,\mathrm{meas}}}-1

When the lattice expands, its disks move inward in reciprocal space. The fourfold angular moment estimates the orientation modulo 90 degrees, and four count-weighted centroids give the mean disk radius. This is a simple isotropic estimate, not a full strain tensor.

Dose and storage scale differently

Ne=Iτe,d=NeNxNyAS=4NxNyNθxNθy bytes\begin{gathered}N_e=\frac{I\tau}{e},\qquad d=\frac{N_eN_xN_y}{A}\\ S=4N_xN_yN_{\theta x}N_{\theta y}\ \mathrm{bytes}\end{gathered}

A finer scan means more probe exposures and more stored frames. Moving the inspected position or the virtual mask reuses the cube you already have. Animation collects no extra electrons.

Common difficulties

A cube is not a larger image

Typical misconceptionFour-dimensional STEM is one high-resolution two-dimensional picture.

Better mental modelTwo axes describe where the probe is and two describe where the electrons scatter. Summing over the detector axes with different masks gives different images from the same data.

Convergence angle is a tradeoff

Typical misconceptionA tighter real-space probe always gives more precise strain.

Better mental modelA larger convergence angle makes the disks bigger in reciprocal space. The probe gets narrower, but the Bragg disks can overlap, and then the lattice positions can no longer be found.

Run the experiment

  1. 01

    Predict which grain a mask selects

    Start with Resolve · select left grain. Move the probe to each side and inspect the recorded frame.

    What to observe: In the right grain the disk pattern rotates and draws inward. Its orientation and dilation are computed from the counts at the selected position.
  2. 02

    Reuse the same data cube

    Rotate the virtual dark-field mask from 0 to 30 degrees, then compare with the right-grain preset and the central bright-field mask.

    What to observe: The bright grain in the dark-field image switches sides, while the diffraction frames, dose and memory stay the same.
  3. 03

    Break the estimate on purpose

    Compare the presets for overlapping disks, clipped diffraction and a sparse, low-count scan.

    What to observe: Disks that overlap or are cut off make the lattice estimate invalid. A partial frame that looks bright does not bring back the missing information.
  4. 04

    Meet the target

    Reach the stated coverage, valid fraction, scan step, dwell and dark-field contrast, then check.

    What to observe: Passing shows that this acquisition and estimate work together here; it does not certify the strain or orientation of a real material.
FeedbackSomething broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy