View DICOM
English
Viewer

Pixel spacing: why measurements are in millimetres or in pixels

On one image a line measures 42.5 mm, on another 310 px. The difference lies in a single piece of information stored – or not stored – in the file.

What pixel spacing is

A digital image is a grid of pixels. To turn a number of pixels into a length, the viewer has to know how large one pixel is. DICOM files store this in the tag Pixel Spacing (0028,0030): two numbers giving the height and width of a pixel in millimetres, for example 0.143 \ 0.143.

With this value, measuring is simple arithmetic: 300 pixels × 0.143 mm = 42.9 mm.

When the value is present

In these cases View DICOM shows lengths in millimetres and areas in square millimetres.

When it is missing

Then results are given in pixels, and a note under the list of measurements says so. Angles are not affected: an angle is the same whatever the pixel size.

Millimetres on the detector, not in the body

Even a correct pixel spacing describes the size at the detector. An X-ray is a projection from a point source, so everything between the source and the detector is magnified – the further from the detector, the more. For a hip or a spine the magnification is typically several per cent to well over ten per cent.

CT and MRI are different: their slices are computed, and distances within a slice correspond to real anatomy.

How professionals calibrate

When exact sizes matter – for example when planning an implant – a marker of known size, often a metal ball, is placed at the level of the bone during the exposure. The measured size of the marker gives the magnification factor. You can measure such a marker with the ○ Circle tool and work out the factor yourself.

Comparing without calibration

Ratios do not depend on the pixel size or on magnification. If you only need to know how one length compares with another on the same image, measuring in pixels is as good as in millimetres.

Check the value yourself

Open the DICOM metadata panel and look for (0028,0030). More on reading the fields is in DICOM tags explained; the measuring tools are described in measuring on X-ray images.

Open the viewer – free Guide

More articles