Virtual Detectors
- Adding and selecting detectors
- Shaping a detector
- Applying a detector
- What each detector gives
- Keeping a detector’s image
A virtual detector is a disk or an annulus on the diffraction pattern. Applying it computes one value per scan position, from the part of every pattern the detector covers, and gives you an image of the whole scan. A small disk on the central beam makes a bright-field (BF) image, an annulus outside it makes an annular dark-field (ADF) image. With centre of mass (CoM) or a segmented detector, the image shows how the beam is deflected, which maps electric and magnetic fields in the sample.
Detectors belong to the scan, not to the panel: they are saved with the scan in the project, and they are still there when you close the panel and open the scan again.
Adding and selecting detectors
Detectors are listed under Detectors in the Selection tab of a 4D STEM panel.
- Add detector adds one, up to 10 per scan. The first is named BF (a disk on the pattern centre), the second ADF (an annulus), and further ones Detector 3, Detector 4, and so on.
- Click a detector in the list to select it. Only the selected detector is drawn on the diffraction pattern and edited in the fields below.
- The bin icon next to a detector (tooltip Remove this detector and its image) removes it and its image.
- A detector that has no image yet is marked in the list: select it and click Apply.
The detector picker in the panel header selects a detector too, and shows its image on the left once it has been applied. Overview goes back to the sum image.
Shaping a detector
Drag the selected detector on the diffraction pattern to move it, or drag its edge to resize it. Or set it exactly in the Selection tab:
| Setting | Description |
|---|---|
| Name | The detector’s name, used in the names of its images |
| Segments | Cut the detector into this many wedges, 1 to 16. 1 is a whole detector; two or more make a segmented detector (see Segmented detectors and DPC). |
| Azimuth | For a segmented detector: where the first segment starts, in degrees clockwise from the horizontal |
| Signal | For a whole detector: Intensity sums the counts inside the detector; CoM finds the centre of mass of the intensity inside it |
| iCoM high-pass | For a CoM or segmented detector: the high-pass cutoff applied to the iCoM image, to remove a slow background from descan or drift. 0 keeps everything. |
| Inner radius | In pixels. 0 gives a disk, more than 0 an annulus. |
| Outer radius | In pixels |
| In units | The radii in the pattern’s calibrated unit, when the pattern has a Pixel size |
| Centre X, Centre Y | The detector centre on the pattern, in pixels |
Applying a detector
Apply (in the Selection tab, or on the button that appears over the scan image) computes the detector’s images over the whole scan and shows one on the left. On a large acquisition this streams the whole file once, so it can take a while.
If you reshape a detector after applying it, the image on the left no longer matches the shape on the pattern. Apply again to update it, or Undo to put the detector back to the shape its image was made with.
What each detector gives
| Detector | Images |
|---|---|
| Whole detector, Intensity | Intensity: the summed counts inside the detector (a BF, ABF or ADF image, depending on its shape) |
| Whole detector, CoM | CoM x, CoM y and CoM magnitude: where the intensity inside the detector is centred, in pattern pixels; and iCoM |
| Segmented detector | Intensity, DPC x, DPC y, DPC magnitude, a Segments colour image built from the counts in each segment, and iCoM |
Pick which image is shown with Image under Scan in the Selection tab. Each detector’s images are listed there under its name, for example ADF: Intensity or BF: CoM x.
Centre of mass and iCoM
The centre-of-mass maps show how far, and in which direction, the beam is deflected at each scan position. iCoM integrates the (CoM x, CoM y) field into a single phase-like image of the sample. A scan that is only one position high or wide has no iCoM image.
Segmented detectors and DPC
A detector with two or more Segments works like a segmented hardware detector for differential phase contrast (DPC). Nexus computes the counts in every segment, the DPC x and y signals and their magnitude, and the iCoM image. The Segments image tints each scan position towards the colours of the segments that received more than their share of the signal, and shows it grey where the segments are even, so the direction of the deflection reads as a hue. Choose its colouring with Color Scale under Scan (Colour wheel, Soft wheel, Warm to cool or Primaries).
Keeping a detector’s image
A detector’s images live with the panel until you keep one. With the image shown on the left, click Add as separate signal to workspace under Scan: the image becomes a signal of its own, nested under the scan in the Workspace and named after the detector, for example t0 BF (disk r16) or t0 ADF CoM x (annulus 8–20). You can then show it in an Image Viewer, export it, or use it in a script.
The Segments colour image itself cannot be kept: it is drawn from the segment counts for the panel. Keep the DPC or iCoM images instead.