DICOM标签
DICOM文件包含了丰富的元数据,这些元数据以标签(Tag)的形式存在,每个标签由一个组号(Group)和一个元素号(Element)组成,共同标识一个特定的数据元素。DICOM中文件中的标签,通过查询可知至少有2000多个。
常用标签
在CT项目开发中经常涉及的重要标签有:
PixelData、Pixel Spacing、Spacing Between Slices、Rows、Columns、Image Position (Patient)、Image Orientation (Patient)、Series Instance UID以及Patient相关的(姓名、性别、年龄等等)。
标签 | 作用 | 数据 | 数据的含意 | DICOM标准 |
PixelData | 存储像素值 | C.7.6.3.1.4 Pixel Data Pixel Data (7FE0,0010) for this image. The order of pixels encoded for each image plane is left to right, top to bottom, i.e., the upper left pixel (labeled 1,1) is encoded first followed by the remainder of row 1, followed by the first pixel of row 2 (labeled 2,1) then the remainder of row 2 and so on. For multi-plane images see Planar Configuration (0028,0006) in this Section. | ||
Pixel Spacing | 像素空间 | +3.130000e-001\+3.130000e-001 | 一个像素在行方向上的宽度为0.313, 在列方向上的宽度为0.313 | Physical distance in the patient between the center of each pixel, specified by a numeric pair - adjacent row spacing (delimiter) adjacent column spacing in mm. See Section 10.7.1.3 for further explanation. |
Spacing Between Slices | 层间距 | 0.625 | 相邻两张CT的距离(单位:mm) | Spacing between adjacent slices, in mm. The spacing is measured from the center-to-center of each slice. If present, shall not be negative, unless specialized to define the meaning of the sign in a specialized IOD, e.g., as in the Section C.8.4.15. |
Rows | 图像行数 | 512 | ||
Columns | 图像列数 | 512 | ||
Image Position (Patient) | 图像中像素矩阵的第一个像素的位置,即图像左上角在患者坐标系中的x、y和z坐标。 | -203.968\-200.000\-244.062 | 第一个像素点的x值为-203.968,y值为-200.000,z值为-244.062 | The x, y, and z coordinates of the upper left hand corner (center of the first voxel transmitted) of the image, in mm. See Section C.7.6.2.1.1 for further explanation. |
Image Orientation (Patient) | 图像第一行和第一列相对于患者的方向余弦值。 | 1.000000\0.000000\0.000000\0.000000\1.000000\0.000000 | 前三个数字表示图像第一行相对于患者的x、y、z轴的方向余弦值(行方向向量),后三个数字表示第一列相对于患者的x、y、z轴的方向余弦值(列方向向量)。行方向向量与列方向向量的叉积即是图像的Z轴方向向量。 | The direction cosines of the first row and the first column with respect to the patient. See Section C.7.6.2.1.1 for further explanation. |
Series Instance UID | 序列实例ID,一个用于唯一标识一个影像序列的标签,确保在同一个检查中不同序列可以被区分开来,它是每个序列的全局唯一标识符 | 1.2.840.113619.2.476.27041831739959084714451080526008566505 |
|
注意:Dicom给出的Spacing Between Slices可能不准确,最好通过Image Position来计算,通过Image Position计算层间距时:需要通过Image Orientation来判断是取Image Position的X/Y/Z轴的值进行层间距计算。
若X轴与Y轴的方向向量的z值均为0时(例如Image Oriantation为1/0/0/0/1/0),用Image Position中Z轴计算;
若X轴与Y轴的方向向量的x值均为0时(例如Image Oriantation为0/1/0/0/0/1),用Image Position中X轴计算;
若X轴与Y轴的方向向量的y值均为0时(例如Image Oriantation为1/0/0/0/0/1),用Image Position中Y轴计算。