Medical Image Formats#
Introduction#
A medical image is a digital representation of the internal structure or function of an anatomic region, typically presented as an array of picture elements called pixels (2D) or voxels (3D). This representation is a discrete mapping of numerical values to positions in space.
Medical Image Metadata#
Medical images often come with metadata, which provides additional information about the image. This metadata is usually stored at the beginning of the image file as a "header."
Common Metadata Fields#
- Image dimensions: Width, height, depth
- Voxel size: Spacing between voxels
- Origin: Location of the first voxel
- Orientation: Direction of x, y, and z axes
- Pixel depth: Bytes used to represent each voxel intensity
- Data type: Integer, floating-point, etc.
add diagram showing a sample header with key metadata fields
Pixel Data#
The pixel data in a medical image file represents the actual image values, stored in a format specific to the image file.
- In fixed-size header formats, pixel data follows the header directly.
- In other formats, a marker or tag indicates the start of pixel data.
Pixel Data Size#
Image File Size#
Example Calculation:
For a DICOM image with the following parameters:
Parameter | Value |
---|---|
Rows | 512 |
Columns | 512 |
Pixel Depth | 2 bytes (16-bit image) |
Number of Frames | 32 (32 slices) |
Assuming the header size for this DICOM file is 1,024 bytes:
Medical Image File Formats#
Categories of Medical Image Formats#
-
Standardization Formats: Standardize images from diagnostic modalities.
- Example: DICOM
-
Post-Processing Formats: Facilitate and strengthen post-processing analysis.
- Examples: Analyze, NIfTI, MINC
Configurations for Storing Medical Images#
-
Single File: Contains both metadata and image data, with metadata stored at the beginning.
- Examples: DICOM, MINC, NIfTI
-
Two Files: Metadata and image data stored separately.
- Example: Analyze (.hdr and .img)
add diagram comparing single file vs. two-file configurations