DICOM which stands for " Digital Imaging and Communication in Medicine " is a document which defines a method of communication for the various equipment of digital medical imaging "modalities". This standard is now in use by the majority of medical imaging hardware manufacturers. Thus, the standard makes it possible for the equipment to communicate remotely through a network or a media (disk or tapes ). By ensuring the compatibility of the equipment and by eliminating proprietary formats.
The goal is to put the images of the patient and all important information associated with the patient, in an format which allows for easy interconnection and interaction of medical imaging equipment with the data.
|
The Digital Imaging and Communications in Medicine (DICOM) standard was created by the National Electrical Manufacturers Association (NEMA) to aid the distribution and viewing of medical images, such as CT scans, MRIs, and ultrasound. A single DICOM file contains both a header (which stores information about the patient's name, the type of scan, image dimensions, etc), as well as all of the image data (which can contain information in three dimensions). DICOM is the most common standard for receiving scans from a hospital. |
|
|
The DICOM header The Image on the left shows a hypothetical DICOM image file. In this example, the first 794 bytes are used for a DICOM format header, which describes the image dimensions and retains other text information about the scan. The size of this header varies depending on how much header information is stored. Here, the header defines an image, which has the dimensions 109x91x2 voxels, with a data resolution of 1 byte per voxel (so the total image size will be 19838). The image data follows the header information (the header and the image data are stored in the same file). Further down, I show a more detailed list of the DICOM header. Note that DICOM requires a 128-byte preamble (these 128 bytes are usually all set to zero), followed by the letters 'D', 'I', 'C', 'M'. This is followed by the header information, which is organized in 'groups'. For example, the group 0002 hex is the file meta information group, and (in the example on the left) contains 3 elements: one defines the group length, one stores the file version and the third stores the transfer syntax. |
|
|
The DICOM elements required depend on the image type, and are listed in Part 3 of the DICOM standard. For example, this image modality is 'MR' (see group:element 0008:0060), so it should have elements to describe the MRI echo time. The absence of this information in this image is a violation of the DICOM standard. In practice, most DICOM format viewers (including ezDICOM) do not check for the presence of most of these elements, extracting only the header information, which describes the image size. |
|
Of particular importance is group:element 0002:0010. This defines the 'Transfer Syntax Unique Identification' (see the table below). The Transfer Syntax UID reports the byte order for raw data. Different computers store integer values differently, so called 'big endian' and 'little endian' ordering. Consider a 16-bit integer with the value 257: the most significant byte stores the value 01 (=255), while the least significant byte stores the value 02. Some computers would save this value as 01:02, while others will store it as 02:01. Therefore, for data with more than 8-bits per sample, a DICOM viewer may need to swap the byte-order of the data to match the ordering used by your computer.
In addition to the Transfer Syntax UID, the image is also specified by the Samples Per Pixel (0028:0002), Photometric Interpretation (0028:0004), the Bits Allocated (0028:0100). For most MRI and CT images, the photometric interpretation is a continuous monochrome (e.g. typically depicted with pixels in grayscale). In DICOM, these monochrome images are given a photometric interpretation of 'MONOCHROME1' (low values=bright, high values=dim) or 'MONOCHROME2' (low values=dark, high values=bright). However, many ultrasound images and medical photographs include color, and these are described by different photometric interpretations (e.g. Palette, RGB, CMYK, YBR, etc). Some colour images (e.g. RGB) store 3-samples per pixel (one each for red, green and blue), while monochrome and paletted images typically store only one sample per image. Each images store 8-bits (256 levels) or 16-bits per sample (65,535 levels), though some scanners save data in 12-bit or 32-bit resolution. So a RGB image that stores 3 samples per pixel at 8-bits per can potentially describe 16 million colours (256 cubed).
|
Transfer Syntax UID |
Definition |
|
1.2.840.10008.1.2 |
Raw data, Implicit VR, Little Endian |
|
1.2.840.10008.1.2.x |
Raw data, Eplicit VR x = 1: Little Endian x = 2: Big Endian |
|
1.2.840.10008.1.2.4.xx |
JPEG compression xx = 50-64: Lossy JPEG xx = 65-70: Lossless JPEG |
|
1.2.840.10008.1.2.5 |
Lossless Run Length Encoding |
|
|
First 127 bytes contain blank area called preamble. This is a comment area. |
|
|
DICM is the prefix that identifies that this file is a DICOM image file. Strictly speaking, all the DICOM files must possess this preamble & prefix. |
|
DATA ELEMENTS (Tag,VR, VL,Values) |
A Data Element Consists of Tag, VR-Value Representation (optional), VL - Value length and the actual Value. Any DICOM Tag contains a Group number followed by an Element Number. For e.g., In the tag, '0010 0010', the first 4 digits '0010' is the group no. that tells you that the following information is about 'Patient'. The last four digit, '0010' pinpoints the kind of information. Here, '0010' is the Patient Name. |
|
DATA ELEMENTS (Tag,VR, VL, Values) |
It is the Data elements all the way down... |
|
|
And then comes the pixel data. Pixel data is nothing but the image. The image's pixel values are stored here. This pixel data array is followed by the a unique tag '7FE0 0010'. which tells you that it is Pixel data values. |
The following figure illustrates how the data is stored.

|
4 bytes |
2 bytes |
2 bytes |
C bytes (in hex) or 12 bytes
|
|||
|
0010 0010
|
PN
|
0C
|
Thomas Jones
|
|||
|
Tag
|
VR
|
VL
|
Value Field
|
|||
|
4 bytes |
4 bytes |
C bytes (in hex) or 12 bytes
|
||||
|
0010 0010
|
PN
|
0C
|
Thomas Jones
|
|||
|
Tag
|
VL |
Value Field
|
||||
The Attributes listed in the "Security Profile Document" typically need to be protected to provide a complete level of confidentiality from identification. My program protects 19 of the attributes, 14 of which match those recommended below.
Currently many of the medical images taken are stored as you see to the right. But a transition to entirely digital is quickly taking shape

Below is an ultrasound viewed on the computer terminal. It is stored in a digital format and no soft copy is ever produced. The most common formats are dicom, bmp, avi and jpeg.

