DICOM的常用Tag分类和说明
本文轉(zhuǎn)自:http://blog.csdn.net/inter_peng/article/details/46513847
1.????????前言:
基于DICOM3.0標(biāo)準(zhǔn)的醫(yī)學(xué)圖像中,每一張圖像中都攜帶著許多的信息,這些信息主要可以分為Patient, Study, Series和Image四類。每一個(gè)DICOM Tag都是由兩個(gè)十六進(jìn)制數(shù)的組合來確定的,分別為Group和Element。如(0010,0010)這個(gè)Tag表示的是Patient’s Name,它存儲著這張DICOM圖像的患者姓名。
在研發(fā)關(guān)于醫(yī)學(xué)影像軟件時(shí),必然需要對導(dǎo)入的DICOM圖像進(jìn)行文件解析,很重要的一部分工作就是需要從圖像中獲取它所儲存的信息,然后在開發(fā)的軟件中根據(jù)需要顯示出來。一般醫(yī)學(xué)影像軟件在顯示某一張影像時(shí)會(huì)有四角信息,或者當(dāng)醫(yī)生在調(diào)整窗寬窗位值時(shí),需要軟件實(shí)時(shí)顯示此時(shí)的值。
基于C++的DCMTK和基于Java的dcm4che,都是非常優(yōu)秀的解釋DICOM標(biāo)準(zhǔn)的第三方庫,通過在工程中引入它們可以避免軟件開發(fā)人員去進(jìn)行底層的解析工作,可為項(xiàng)目開發(fā)提高效率。
以下是歸納的常見的DICOM Tag標(biāo)簽,和它們的描述和值表現(xiàn)(VR)。
2.????????VR
VR是DICOM標(biāo)準(zhǔn)中用來描述數(shù)據(jù)類型的,總共有27個(gè)值。簡單分類如下:
?
| VR | 含義 | 允許 字符 | 數(shù)據(jù)長度 |
| CS?- Code String 代碼字符串 | 開頭結(jié)尾可以有沒有意義的空格的字符串,比如“CD123_4” | 大寫字母,0-9,空格以及下劃線字符 | 最多?16?個(gè)字符 |
| SH?- Short String 短字符串 | 短字符串,比如:電話號碼,ID等 | ? | 最多?16?個(gè)字符 |
| LO?- Long String ?長字符串 | 一個(gè)字符串,可能在開頭、結(jié)尾填有空?格。比如“Introduction to DICOM” | ? | 最多?64?個(gè)字符 |
| ST? - Short Text 短文本 | 可能包含一個(gè)或多個(gè)段落的字符串 | ? | 最多?1024?個(gè)字符 |
| LT? - Long Text 短文本 | 可能包含一個(gè)或多個(gè)鍛煉的字符串,與LO相同,但可以更長 | ? | 最多?10240?個(gè)字符 |
| UT?- Unlimited Text 無限制文本 | 包含一個(gè)或多個(gè)段落的字符串,與?LT類似 | ? | 最多(2的32次方–2)個(gè)字符 |
| AE?- Application Entity 應(yīng)用實(shí)體 | 標(biāo)識一個(gè)設(shè)備的名稱的字符串,開頭和?結(jié)尾可以有無意義的字符。比如“MyPC01” | ? | 最多?16?個(gè)字符 |
| PN?- Person Name 病人姓名 | 有插入符號(^)作為姓名分隔符的病人姓名。比如“SMITH^JOHN” “Morrison- Jones^Susan^^^Ph.D,?Chief Executive Officer” | ? | 最多?64?個(gè)字符 |
| UI?- Unique Identifier (UID) 唯一標(biāo)識符 | 一個(gè)用作唯一標(biāo)識各類項(xiàng)目的包含UID?的字符串。比如“1.2.840.10008.1.1” | 0-9?和半角句號(.) | 最多64?個(gè)字符 |
| DA?- Date 日期 | 格式為?YYYYMMDD?的字符串;YYYY代表年;MM?代表月;DD?代表日。比?如“20050822”表示?2005?年?8月?22?日 | 0-9 | 8個(gè)字符 |
| TM?- Time 時(shí)間 | 格式為?HHMMSS?的字符串。FRAC;?HH?表示小時(shí)(范圍“00”-“23”);?MM?表示分鐘(范圍“00”-“59”);?而?FRAC?包含秒的小數(shù)部分,即百萬分?之一秒。比如“183200.00”?表示下午?6:32 | 0-9?和半角句號(.) | 最多?16?個(gè)字符 |
| DT?- Date Time 日期時(shí)間 | 格式為?YYYYMMDDHHMMSS. FFFFFF,串聯(lián)的日期時(shí)間字符串。字符串的各部分從左至右是:年?YYYY;月?MM;日?DD;小時(shí)?HH;分鐘MM;秒?SS;秒的小數(shù)?FFFFFF。比如?20050812183000.00”表示2005?年?8?月?12?日下午?18?點(diǎn)?30分?00?秒 | 0-9,加號,減號和半角句號 | 最多?26?個(gè)字符 |
| AS?- Age String 年齡字符串 | 符合以下格式的字符串:nnnD,nnnW,?nnnM,?nnnY;其中?nnn對于?D?來說表示天數(shù),對于W來說表示周數(shù),對于M?來說表示月數(shù),對于Y?來說表示歲數(shù)。?比如“018M”表示他的年齡是?18?個(gè)月 | 0–9,?D,W,M,?Y | 4?個(gè)字符 |
| IS?- Integer String 整型字符串 | 表示一個(gè)整型數(shù)字的字符串。比如“-1234567” | 0-9,加號(+),減號(-) | 最多?12?個(gè)字符 |
| DS?- Decimal String?小數(shù)字符串 | 表示定點(diǎn)小數(shù)和浮點(diǎn)小數(shù)。?比如“12345.67”,“-5.0e3” | 0-9,加號(+),減號(-),?最多?16個(gè)字符?E,e和半角句號(.) | 最多?16?個(gè)字符 |
| SS?- Signed Short 有符號短型 | 符號型二進(jìn)制整數(shù),長度?16?比特 | ? | 2?個(gè)字符 |
| US?- Unsigned Short?無符號短型 | 無符號二進(jìn)制整數(shù),長度?16?比特 | ? | 2?個(gè)字符 |
| SL?- Signed Long 有符號長型 | 有符號二進(jìn)制整數(shù) | ? | 4?個(gè)字符 |
| UL?- Unsigned Long?無符號長型 | 無符號二進(jìn)制整數(shù),長度?32?比特 | ? | 4?個(gè)字符 |
| AT?- Attribute Tag 屬性標(biāo)簽 | 16?比特?zé)o符號整數(shù)的有序?qū)?#xff0c;數(shù)據(jù)元素的標(biāo)簽 | ? | 4?個(gè)字符 |
| FL?- Floating Single?單精度浮點(diǎn) | 單精度二進(jìn)制浮點(diǎn)數(shù)字 | ? | 4?個(gè)字符 |
| FD?- Floating Point Double 雙精度二進(jìn)制浮點(diǎn)數(shù)字 | 雙精度二進(jìn)制浮點(diǎn)數(shù)字 | ? | 8?個(gè)字符 |
| OB?- Other Byte String 其他字節(jié)字符串 | 字節(jié)的字符串(“其他”表示沒有在VR中定義的內(nèi)容) | ? | ? |
| OW?- Other Word String 其他單詞字符串 | 16?比特(2?字節(jié))單詞字符串 | ? | ? |
| OF?- Other Float String 其他浮點(diǎn)字符串 | 32?比特(4?個(gè)字節(jié))浮點(diǎn)單詞字符串 | ? | ? |
| SQ?- Sequence Items 條目序列 | 條目的序列 | ? | ? |
| UN?– Unknown 未知 | 字節(jié)的字符串,其中內(nèi)容的編碼方式是未知的 | ? | ? |
3.????????DICOM TAG分類和說明
Patient Tag
| Group | Element | Tag Description | 中文解釋 | VR |
| 0010 | 0010 | Patient’s Name | 患者姓名 | PN |
| 0010 | 0020 | Patient ID | 患者ID | LO |
| 0010 | 0030 | Patient’s Birth Date | 患者出生日期 | DA |
| 0010 | 0032 | Patient’s Birth Time | 患者出生時(shí)間 | TM |
| 0010 | 0040 | Patient’s Sex | 患者性別 | CS |
| 0010 | 1030 | Patient’s Weight | 患者體重 | DS |
| 0010 | 21C0 | Pregnancy Status | 懷孕狀態(tài) | US |
Study Tag
| Group | Element | Tag Description | 中文解釋 | VR |
| 0008 | 0050 | Accession Number: A RIS generated number that identifies the order for the Study. | 檢查號: RIS的生成序號,用以標(biāo)識做檢查的次序. | SH |
| 0020 | 0010 | Study ID | 檢查ID. | SH |
| 0020 | 000D | Study Instance UID: Unique identifier for the Study. | 檢查實(shí)例號: 唯一標(biāo)記不同檢查的號碼. | UI |
| 0008 | 0020 | Study Date: Date the Study started. | 檢查日期: 檢查開始的日期. | DA |
| 0008 | 0030 | Study Time: Time the Study started. | 檢查時(shí)間: 檢查開始的時(shí)間. | TM |
| 0008 | 0061 | Modalities in Study | 一個(gè)檢查中含有的不同檢查類型. | CS |
| 0008 | 0015 | Body Part Examined | 檢查的部位. | CS |
| 0008 | 1030 | Study Description | 檢查的描述. | LO |
| 0010 | 1010 | Patient’s Age | 做檢查時(shí)刻的患者年齡,而不是此刻患者的真實(shí)年齡. | AS |
Series Tag??
| Group | Element | Tag Description | 中文解釋 | VR |
| 0020 | 0011 | Series Number: A number that identifies this Series. | 序列號: 識別不同檢查的號碼. | IS |
| 0020 | 000E | Series Instance UID: Unique identifier for the Series. | 序列實(shí)例號: 唯一標(biāo)記不同序列的號碼. | UI |
| 0008 | 0060 | Modality | 檢查模態(tài)(MRI/CT/CR/DR) | CS |
| 0008 | 103E | Series Description | 檢查描述和說明 | LO |
| 0008 | 0021 | Series Date | 檢查日期 | DA |
| 0008 | 0031 | Series Time | 檢查時(shí)間 | TM |
| 0020 | 0032 | Image Position (Patient): The x, y and z coordinates of the upper left hand corner of the image, in mm. | 圖像位置: 圖像的左上角在空間坐標(biāo)系中的x,y,z坐標(biāo),單位是毫米. 如果在檢查中,則指該序列中第一張影像左上角的坐標(biāo). | DS |
| 0020 | 0037 | Image Orientation (Patient): The direction cosines of the first row and the first column with respect to the patient. | 圖像方位: | DS |
| 0018 | 0050 | Slice Thickness: Nominal slice thickness, in mm. | 層厚. | DS |
| 0018 | 0088 | Spacing Between Slices | 層與層之間的間距,單位為mm | DS |
| 0020 | 1041 | Slice Location: Relative position of exposure expressed in mm. | 實(shí)際的相對位置,單位為mm. | DS |
| 0018 | 0023 | MR Acquisition | ? | CS |
| 0018 | 0015 | Body Part Examined | 身體部位. | CS |
?
Image Tag
| Group | Element | Tag Description | 中文解釋 | VR |
| 0008 | 0008 | Image Type: Image identification characteristics. | ? | CS |
| 0008 | 0018 | SOP Instance UID | SOP實(shí)例UID. | ? |
| 0008 | 0023 | Content Date: The date the image pixel data creation started. | 影像拍攝的日期. | DA |
| 0008 | 0033 | Content Time | 影像拍攝的時(shí)間. | TM |
| 0020 | 0013 | Image/Instance Number: A number that identifies this image. | 圖像碼: 辨識圖像的號碼. | IS |
| 0028 | 0002 | Samples Per Pixel: Number of samples (planes) in this image. | 圖像上的采樣率. | US |
| 0028 | 0004 | Photometric Interpretation: Specifies the intended interpretation of the pixel data. | 光度計(jì)的解釋,對于CT圖像,用兩個(gè)枚舉值 MONOCHROME1,MONOCHROME2. 用來判斷圖像是否是彩色的, MONOCHROME1/2是灰度圖, RGB則是真彩色圖,還有其他. | CS |
| 0028 | 0010 | Rows: Number of rows in the image. | 圖像的總行數(shù),行分辨率. | US |
| 0028 | 0011 | Columns: Number of columns in the image. | 圖像的總列數(shù),列分辨率. | US |
| 0028 | 0030 | Pixel Spacing: Physical distance in the patient between the center of each pixel. | 像素間距. 像素中心之間的物理間距. | DS |
| 0028 | 0100 | Bits Allocated: Number of bits allocated for each pixel sample. Each sample shall have the same number of bits allocated. | 分配的位數(shù): 存儲每一個(gè)像素值時(shí)分配的位數(shù),每一個(gè)樣本應(yīng)該擁有相同的這個(gè)值. | US |
| 0028 | 0101 | Bits Stored: Number of bits stored for each pixel sample. Each sample shall have the same number of bits stored. | 存儲的位數(shù):有12到16列舉值. 存儲每一個(gè)像素用的位數(shù).每一個(gè)樣本應(yīng)該有相同值. | US |
| 0028 | 0102 | High Bit: Most significant bit for pixel sample data. Each sample shall have the same high bit. | 高位. ? | US |
| 0028 | 0103 | Pixel Representation: Data representation of the pixel samples. Each sample shall have the same pixel representation. Enum: 0000H=unsigned integer, 0001H=2’s complement. | 像素?cái)?shù)據(jù)的表現(xiàn)類型: 這是一個(gè)枚舉值,分別為十六進(jìn)制數(shù)0000和0001. 0000H =?無符號整數(shù), 0001H = 2的補(bǔ)碼. | US |
| 0028 | 1050 | Window Center | 窗位. | DS |
| 0028 | 1051 | Window Width | 窗寬. | DS |
| 0028 | 1052 | Rescale Intercept: The value b in relationship between stored values (SV) and the output units. Output units = m*SV + b. Required if Modality LUT Sequence (0028, 0030) is not present. | 截距: 如果表明不同模態(tài)的LUT顏色對應(yīng)表不存在時(shí),則使用方程 Units = m*SV + b,計(jì)算真實(shí)的像素值到呈現(xiàn)像素值。 其中這個(gè)值為表達(dá)式中的b。 | DS |
| 0028 | 1053 | Rescale Slope: m in the equation specified by Rescale Intercept (0028,1052). Required if Rescale Intercept is present. | 斜率. 這個(gè)值為表達(dá)式中的m。 | DS |
| 0028 | 1054 | Rescale Type: Specifies the output units of Rescale Slope (0028,1053) and Rescale Intercept (0028,1052). Enum: US=Unspecified Requried if Photometric Interpretation is MONOCHROME2, and Bits Stored is greater than 1. This specifies an identity Modality LUT transformation. | 輸出值的單位. 這是一個(gè)枚舉值, ? | LO |
總結(jié)
以上是生活随笔為你收集整理的DICOM的常用Tag分类和说明的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 《神经网络:回到未来》(Neural N
- 下一篇: 基于CNN的性别、年龄识别及Demo实现