Image processing and windowing in digital radiography
Image processing in digital radiography manipulates raw data to optimise contrast and detail before display. Windowing lets the operator map the wide digital signal range onto a visible grey scale, controlling which tissues are seen and how bright they appear on the final image.
Image Processing and Windowing in Digital Radiography
What is image processing and why do we need it?
When an X‑ray passes through the body and hits a digital detector, the system captures a huge range of exposures — from very dense bone to very dark lung. The raw data straight off the detector often looks flat and low in contrast. Image processing is the set of mathematical steps the computer applies to that raw data before you see the final picture on the screen.
The goals are simple:
- Make soft tissues, bone and lung visible in the same image.
- Keep the image looking consistent from patient to patient.
- Reduce noise (graininess) without losing fine detail.
- Present the data in a way that matches what a radiologist expects to see.
In the exam, you must be able to name the main processing steps and explain what each one does to the image.
What are the main types of image processing?
1. Pre‑processing (detector corrections)
Before any pretty pictures happen, the system corrects for imperfections in the detector itself. Every digital detector has slightly different sensitivity from pixel to pixel, and some pixels may be dead or noisy.
Common corrections include:
- Offset correction – removes the background signal present even when no X‑rays hit the detector.
- Gain calibration – compensates for pixels that are more or less sensitive than their neighbours.
- Bad pixel mapping – replaces dead or flickering pixels with values from surrounding good pixels.
These steps happen automatically and are invisible to the radiographer, but they are essential for producing a uniform image.
2. Contrast enhancement
Contrast is the difference in brightness between adjacent structures. Digital detectors can capture a much wider range of exposures than old film, but our eyes cannot see all those shades at once. Contrast enhancement stretches or compresses parts of the signal range so that soft tissue differences become visible.
The main tool is a look‑up table (LUT). A LUT is a graph or table that says: “If the detector records this number, display it as this shade of grey.” By changing the shape of the LUT, the system can:
- Make soft tissues stand out more (wider range of greys for a narrow range of exposures).
- Keep bone detail visible without blowing out the soft tissue.
3. Edge enhancement (spatial filtering)
Edge enhancement makes the boundaries between structures crisper. It works by using a mathematical filter that looks at each pixel and its neighbours. Where there is a big change in value — for example, where soft tissue meets bone — the filter boosts that difference.
The result is a sharper‑looking image, which helps with:
- Visualising fracture lines.
- Seeing the edges of catheters and tubes.
- Lung nodule detection.
Too much edge enhancement, however, can create a “halo” effect and increase apparent noise, so systems use it carefully.
4. Noise reduction
Noise is random variation in the pixel values that makes the image look grainy. It is more obvious in thin patients or low‑dose examinations. Noise reduction algorithms smooth the image by averaging nearby pixel values, but they must be designed so they do not blur real detail.
Modern systems use adaptive filtering: strong smoothing in uniform areas (like the liver) and less smoothing at edges (like vessel borders). This keeps diagnostic detail while improving the overall look of the image.
What is windowing and how does it differ from processing?
Windowing is the tool you, the operator, use to control how the stored digital data is displayed on your monitor. It does not change the raw data; it only changes the mapping from stored numbers to screen brightness.
Think of the digital image as a huge ladder of grey levels — often 12‑ or 14‑bit, meaning 4 096 to 16 384 possible values. Your monitor and your eyes can only handle a few hundred shades at a time. Windowing lets you choose which part of that ladder you want to look at.
Two controls do this:
- Window width (WW) – how many grey levels you spread across the screen.
- Window level (WL) – the centre of that range, i.e. the brightness of the middle grey.
A narrow window width gives high contrast because a small range of exposures is stretched over the whole screen. A wide window width gives low contrast but shows many different tissues at once.
How do window width and window level affect the image?
Window width
-
Narrow window width
- Few greys displayed.
- High contrast.
- Good for looking at similar tissues (e.g. brain parenchyma).
- Risk: may clip very dark or very bright structures off the visible range.
-
Wide window width
- Many greys displayed.
- Low contrast.
- Good for looking at structures with very different density in the same image (e.g. bone and lung on a chest radiograph).
Window level
-
Low (dark) window level
- Shifts the visible range towards darker values.
- Makes air‑filled structures (lung, bowel gas) stand out.
-
High (bright) window level
- Shifts the visible range towards brighter values.
- Makes dense structures (bone, contrast) stand out.
In practice, preset “windows” are stored on the system for common tasks: a lung window, a bone window, a brain window, and so on. The radiographer selects the preset, and the system applies the appropriate WW and WL.
Why is windowing so important in clinical practice?
Digital detectors capture a huge dynamic range — much more than film ever could. Without windowing, all that extra information would be squashed into a single, unhelpful grey wash.
Windowing lets you:
- Reveal subtle lung disease that would be invisible on a standard soft‑tissue display.
- See both bone cortex and surrounding soft tissue in the same study.
- Adjust the image after acquisition without re‑exposing the patient.
This is one of the biggest advantages of digital over film: you can “re‑window” the data at any time at the viewing station.
How does this link to the rest of the FRCR physics syllabus?
Image processing and windowing sit at the end of the imaging chain. They depend on everything that came before:
- Detector physics – the raw signal quality limits how much processing can help.
- Exposure factors – too low a dose means more noise, which processing cannot fully fix.
- Spatial resolution – edge enhancement can make edges look sharper but cannot create detail that was never captured.
In the exam, you may be asked to explain why a digital image looks different from a film‑screen image, or why changing the window width changes contrast. Always come back to the idea that digital data is flexible: processing optimises it, and windowing controls how you see it.
Further reading
For more detail on the algorithms and clinical examples, see:
- Farr's Physics for Medical Imaging, chapter on digital image processing.
Key terms
- Look‑up table (LUT) – a mapping function that converts stored pixel values into displayed grey levels.
- Window width – the range of grey levels displayed on the screen; controls contrast.
- Window level – the centre value of the displayed range; controls brightness.
- Dynamic range – the span of exposures a detector can capture, from very low to very high.
- Noise – random variation in pixel values that reduces image quality.
- Edge enhancement – processing that increases the visibility of boundaries between structures.
Keep going
- Next step: FRCR Part 1 Physics Question Bank
- Related: Free FRCR Physics Revision Notes
- Related: Computed radiography (CR) vs digital radiography (DR)
- Image processing includes pre‑processing, contrast enhancement, edge enhancement and noise reduction.
- A look‑up table (LUT) maps stored pixel values to displayed grey levels and controls contrast.
- Windowing is a display tool: it does not change raw data, only how it is shown.
- Window width controls contrast: narrow width = high contrast, wide width = low contrast.
- Window level controls brightness: low level for lung, high level for bone.
- Digital detectors have a wide dynamic range, allowing post‑acquisition re‑windowing without re‑exposure.
- Edge enhancement sharpens boundaries but can increase apparent noise if over‑applied.
- Noise reduction must balance smoothing with preserving fine detail.
- Confusing image processing (automatic, changes data) with windowing (operator display control).
- Thinking window level changes contrast — it changes brightness; width changes contrast.
- Believing edge enhancement improves true spatial resolution — it only makes edges look sharper.
- Assuming more processing always means better image — excessive processing can introduce artefacts.
- Forgetting that poor exposure cannot be fully corrected by processing or windowing.
Lock this in with exam-style Radiography & Digital Imaging questions and worked explanations on FRCRbank.
Start practising →- Image processing:
- Automatic mathematical operations applied to raw detector data to optimise contrast, sharpness and noise before display.
- Look‑up table (LUT):
- A mapping function that converts stored pixel values into displayed grey levels, controlling image contrast.
- Window width:
- The range of grey levels displayed on the screen; a narrow width gives high contrast, a wide width gives low contrast.
- Window level:
- The centre value of the displayed grey range; it controls the overall brightness of the image.
- Edge enhancement:
- Processing that increases the visibility of boundaries between structures by boosting differences between neighbouring pixel values.
- Noise:
- Random variation in pixel values that makes the image look grainy and can obscure fine detail.
- Dynamic range:
- The span of exposures a detector can accurately capture, from very low to very high intensity.
FAQ
What is the difference between image processing and windowing?
Image processing is automatic manipulation of the raw detector data to improve contrast, reduce noise and sharpen edges. Windowing is a manual display control that maps the stored data onto screen brightness and contrast without altering the underlying numbers.
Why do we need windowing in digital radiography?
Digital detectors capture a much wider range of exposures than the human eye can see at once. Windowing lets the operator select which part of that range to display, making specific tissues such as lung or bone clearly visible.
How does changing window width affect the image?
A narrow window width increases contrast by spreading a small range of exposures over the whole grey scale. A wide window width decreases contrast but allows many different tissue densities to be seen in the same image.
Can image processing fix a badly underexposed radiograph?
Processing can improve the appearance of a slightly underexposed image, but it cannot create information that was not captured. Severe underexposure leads to high noise, which processing cannot fully correct without losing detail.