---
title: "EFTEM: Energy Windows & Elemental Maps Interactive Lab | Sandbox Physics"
description: "Does a bright energy-filtered pixel mean more carbon? Not necessarily. An image taken just above the carbon edge also contains background from other energy losses. The three-window method uses two images below the edge to estimate that background pixel by pixel, then subtracts it. Even so, the map depends on noise, where the windows sit, how well the images line up, specimen thickness and the background model."
canonical_url: "https://sandboxphysics.com/labs/eftem/"
language: "en"
page_type: "lab"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/labs/eftem/"
last_modified: "2026-10-25"
---

E35 · Energy-filtered imaging

# EFTEM: Energy Windows & Elemental Maps

**Does a bright energy-filtered pixel mean more carbon?** Not necessarily. An image taken just above the carbon edge also contains background from other energy losses. The three-window method uses two images below the edge to estimate that background pixel by pixel, then subtracts it. Even so, the map depends on noise, where the windows sit, how well the images line up, specimen thickness and the background model.

Slide an energy slit across the spectrum of the transmitted electrons. Record two images below the carbon edge and one above it, fit a power-law background at every pixel, and compare the signed net map with a jump-ratio map and a separately recorded relative-thickness map. Then correct a drifting acquisition from its recorded frames, without swapping in the known specimen.

> Interactive simulation: open this page in a web browser to change the parameters and run the model.

Model assumptions

The synthetic field of view is 100 nm wide and sampled on a 40 by 40 grid, with the beam fixed at 200 kV. The spectrum assumes a thin specimen with single core scattering. The nominal carbon edge is at 284 eV; yields, composition and thickness are teaching inputs. The two-window fit integrates the power law exactly over each window instead of taking ratios of center values. The core map leaves out plural scattering, chemical fine structure and absolute quantification from cross sections. Thickness comes from a separate pair of zero-loss and all-loss counts, with an assumed 100 nm mean free path and the same collection for both. Each core frame has the same exposure, with a uniform 100000 incident electrons per pixel per second. The dose readout covers the five-image analysis protocol; the live slit preview is a separate single exposure. Every view recomputes the exposure plan, and animation never adds dose. An assumed Gaussian spatial blur grows with slit width; it is not an instrument specification. Alignment with the known drift resamples the recorded images and masks regions that no longer overlap. Negative net values from noise are kept, and invalid fits are shown in gray. The jump ratio is not elemental concentration. The ideal magnetic filter and relay optics separate the energy and image planes only schematically; their fields and aberrations are not solved.

Physics tutorial

## A filtered image is a measurement, not an element label

**Background** An energy filter lets through transmitted electrons whose loss falls in a chosen range, and the image relay keeps the position on the specimen each one came from. An image taken above the edge contains both the core signal and a background.

**Why it matters** Thick regions and drift can look bright even where there is no more of the element. A map you can defend needs recorded background windows and valid processing.

Start with the essentials

- **Focus question**: Does a bright energy-filtered pixel mean more carbon?
- **One-sentence intuition**: The three-window method fits and subtracts the background at every pixel, so what remains depends on noise, window placement, image alignment and the background model.

### Core mathematical model

#### The slit integrates the spectrum at each pixel

$$
C_k(\mathbf r)=N_{\mathrm{inc}}\int_{E_k-\Delta E/2}^{E_k+\Delta E/2}S(\mathbf r,E)\,\mathrm dE
$$

Counts are drawn from this integral after the stated spatial blur and frame shift are applied. The live slit preview is an exposure separate from the three-image mapping protocol.

#### Fit the whole window, not its center value

$$
\begin{aligned}B(E)&=A(E/284\,\mathrm{eV})^{-r}\\W_k(r)&=\int_{E_k-\Delta E/2}^{E_k+\Delta E/2}(E/284\,\mathrm{eV})^{-r}\,\mathrm dE\\C_1/C_2&=W_1(r)/W_2(r)\end{aligned}
$$

At each pixel the fit finds the exponent and amplitude from the recorded pre-edge counts. A fit is marked invalid if the exponent falls outside the assumed range from zero up to eight. Edge signal leaking into a pre-edge window breaks the background assumption.

#### Subtract the background and keep the sign of the residual

$$
C_{\mathrm{net}}=C_{\mathrm{post}}-A W_{\mathrm{post}}(r),\qquad R_{\mathrm{jump}}=\frac{C_{\mathrm{post}}}{C_2}
$$

The net signal and the jump ratio mean different things, and neither gives atomic concentration by itself: cross sections, thickness and plural scattering all matter. Negative residuals are kept instead of being clipped to make the image look cleaner.

#### Thickness from a separate pair of low-loss counts

$$
\mu_{\mathrm{app}}(\mathbf r)=\ln\frac{C_0(\mathbf r)+C_{\mathrm{loss}}(\mathbf r)}{C_0(\mathbf r)}
$$

The zero-loss and all-loss counts are assumed to have the same collection efficiency. Spatial blur and counting noise prevent an exact pixel-by-pixel result. This relative-thickness image is separate from the carbon map.

### Common difficulties

#### A jump ratio is not concentration

**Typical misconception** A brighter pixel in the ratio map always has a larger atomic fraction.

**Better mental model** The denominator also depends on background and thickness. Quantitative analysis calibrated with cross sections is beyond this model.

### Run the experiment

1. 01

   #### Move the slit

   Compare losses near zero, 16 eV and 300 eV. Watch which representative paths pass the slit and how the detector changes.

   **What to observe:** The detector always shows the energy window you selected. The three-window mapping protocol uses its own fixed window above the edge.

2. 02

   #### Break a background assumption

   Choose Pre-edge contamination, then restore a safe second window. Widen the slit and inspect both boundaries.

   **What to observe:** The check rejects windows that overlap or include the carbon edge. A map that looks plausible is not enough.

3. 03

   #### Correct the drifting frames

   Choose Uncorrected drift, then enable known-frame alignment. Compare the raw frames, net profile, correlation and coverage.

   **What to observe:** The raw images do not change. Processing resamples them and masks the edges that no longer overlap; the counting noise stays.

4. 04

   #### Compare the outputs and finish

   Try the jump-ratio and relative-thickness presets, then obtain a valid signed map with correlation at least 0.95 and coverage at least 75 percent.

   **What to observe:** More exposure improves counting precision but raises the dose of the protocol. The thickness and ratio maps cannot replace background subtraction for the element.

Physical conclusion

Look at the raw frames, the signed residuals and the missing overlap together. The known specimen is a teaching comparison; it is not reconstructed from the data.

Fields & matter · Starter path

## From a field to an electron microscope

Map an electric field and steer a charged particle. Then find the electron's wavelength and use electron beams to see a crystal and a surface.

[Start here → **Make an Electric Field Visible** Move the probe around a dipole and check that the field always points downhill on the potential landscape. Observe · 8 min](https://sandboxphysics.com/labs/electric-field/)

1. [1 Make an Electric Field Visible](https://sandboxphysics.com/labs/electric-field/)
2. [2 A Charge Bending through Fields](https://sandboxphysics.com/labs/charged-particle/)
3. [3 Electron Wavelength & Voltage](https://sandboxphysics.com/labs/electron-wavelength/)
4. [4 Electron Diffraction & Reciprocal Space](https://sandboxphysics.com/labs/electron-diffraction/)
5. [5 TEM Bright Field, Dark Field & SAED](https://sandboxphysics.com/labs/tem-mode-selector/)
6. [6 SEM Secondary-Electron Topography](https://sandboxphysics.com/labs/sem-topography/)

[View the full path →](https://sandboxphysics.com/topics/fields-and-matter/#starter-path)
