找不到 DICOM 属性(0020,4000【图片点评】)
Cannot find DICOM attribute (0020,4000 [Image Comments])
我正在使用 pydicom 编写一个脚本来自动化超声医学报告。
但是,我找不到0020,4000 [图片评论]属性。我已经尝试使用来自不同超声波机器的不同图像以及来自 dcmtk 的 dcmdump 但没有成功。
如有任何帮助,我们将不胜感激。
dicom 对象和图像样本如下:
(0008, 0008) Image Type CS: ['ORIGINAL', 'PRIMARY', '', '0011']
(0008, 0016) SOP Class UID UI: Ultrasound Image Storage
(0008, 0018) SOP Instance UID UI: 1.2.840.113619.2.98.5380.1578912657.0.12421
(0008, 0020) Study Date DA: '20200113'
(0008, 0021) Series Date DA: '20200113'
(0008, 0023) Content Date DA: '20200113'
(0008, 002a) Acquisition DateTime DT: '20200113142223.000'
(0008, 0030) Study Time TM: '141605'
(0008, 0031) Series Time TM: '141639'
(0008, 0033) Content Time TM: '142223'
(0008, 0050) Accession Number SH: '20080940/17'
(0008, 0060) Modality CS: 'US'
(0008, 0070) Manufacturer LO: 'GE Vingmed Ultrasound'
(0008, 0080) Institution Name LO: 'XXXXXXXXXXXXXXXXXX'
(0008, 0090) Referring Physician's Name PN: ''
(0008, 1010) Station Name SH: 'VIVID7-AB'
(0008, 1030) Study Description LO: 'Ecocardiografia Doppler'
(0008, 1050) Performing Physician's Name PN: 'Default'
(0008, 1070) Operators' Name PN: 'ADM'
(0008, 1090) Manufacturer's Model Name LO: 'Vivid7'
(0008, 2111) Derivation Description ST: '[EMGDCM] Lossless Compression (JPEG p14), Selection Value = 1, Point Transform = 0, compression ratio = 3.417266'
(0010, 0010) Patient's Name PN: 'XXXXXXXXXXXXXXXXXX'
(0010, 0020) Patient ID LO: 'XXXXXXXXXXXX'
(0010, 0030) Patient's Birth Date DA: '19770609'
(0010, 0040) Patient's Sex CS: 'F'
(0018, 1020) Software Version(s) LO: 'Vivid7:4.2.0'
(0018, 6011) Sequence of Ultrasound Regions 1 item(s) ----
(0018, 6012) Region Spatial Format US: 1
(0018, 6014) Region Data Type US: 2
(0018, 6016) Region Flags UL: 0
(0018, 6018) Region Location Min X0 UL: 80
(0018, 601a) Region Location Min Y0 UL: 8
(0018, 601c) Region Location Max X1 UL: 556
(0018, 601e) Region Location Max Y1 UL: 391
(0018, 6020) Reference Pixel X0 SL: 238
(0018, 6022) Reference Pixel Y0 SL: -8
(0018, 6024) Physical Units X Direction US: 3
(0018, 6026) Physical Units Y Direction US: 3
(0018, 602c) Physical Delta X FD: 0.04603580745589702
(0018, 602e) Physical Delta Y FD: 0.04603580745589702
(0018, 6030) Transducer Frequency UL: 1702
(0018, 6032) Pulse Repetition Frequency UL: 4000
(0020, 000d) Study Instance UID UI: 1.2.826.0.1.3680043.2.97.1.1.1516127677.2001031016198050
(0020, 000e) Series Instance UID UI: 1.2.840.113619.2.98.5380.1578912657.0.12310
(0020, 0010) Study ID SH: '20080940/17'
(0020, 0011) Series Number IS: "0002"
(0020, 0013) Instance Number IS: "0013"
(0020, 0020) Patient Orientation CS: ''
(0028, 0002) Samples per Pixel US: 3
(0028, 0004) Photometric Interpretation CS: 'RGB'
(0028, 0006) Planar Configuration US: 0
(0028, 0010) Rows US: 434
(0028, 0011) Columns US: 636
(0028, 0100) Bits Allocated US: 8
(0028, 0101) Bits Stored US: 8
(0028, 0102) High Bit US: 7
(0028, 0103) Pixel Representation US: 0
(0038, 0010) Admission ID LO: '2131087'
(0040, 0275) Request Attributes Sequence 1 item(s) ----
(0040, 0007) Scheduled Procedure Step Descriptio LO: 'Ecocardiografia Doppler'
(0040, 0008) Scheduled Protocol Code Sequence 1 item(s) ----
(0008, 0100) Code Value SH: 'US'
(0008, 0102) Coding Scheme Designator SH: 'EXUS'
(0008, 0104) Code Meaning LO: 'US'
---------
(0040, 0009) Scheduled Procedure Step ID SH: 'EXUS252375'
(0040, 1001) Requested Procedure ID SH: '20080940/17'
---------
(7fe0, 0010) Pixel Data OB: Array of 242300 elements
示例图片如下:
图像评论属性 (0020,4000) 是通用图像模块的一部分。参见:https://dicom.innolitics.com/ciods/cr-image/general-image
模块将属性定义为"Type 3",这意味着它可能存在也可能不存在。所以你不能依赖存在的属性。
如果您只需要一张带有属性的图片,例如出于测试目的,您可以使用 DICOM 编辑器(因为您使用的是 DCMTK,dcmodify 可能是您选择的工具)来添加它。
您在问题中提到的属性 (0020,4000 [Image Comments]
) 在您 post 的数据集中不存在。因此,如果您尝试使用工具包查找它,则无法找到它。此外,它是您正在使用的数据集的 Type 3 属性,这意味着它是完全可选的。
看着你的图片post,我认为这不是你要找的。图像上的文本不是从此属性加载的。很可能,它是像素数据的一部分,或者它作为 DICOM 文本叠加层存储在数据集中。
我正在使用 pydicom 编写一个脚本来自动化超声医学报告。
但是,我找不到0020,4000 [图片评论]属性。我已经尝试使用来自不同超声波机器的不同图像以及来自 dcmtk 的 dcmdump 但没有成功。
如有任何帮助,我们将不胜感激。
dicom 对象和图像样本如下:
(0008, 0008) Image Type CS: ['ORIGINAL', 'PRIMARY', '', '0011']
(0008, 0016) SOP Class UID UI: Ultrasound Image Storage
(0008, 0018) SOP Instance UID UI: 1.2.840.113619.2.98.5380.1578912657.0.12421
(0008, 0020) Study Date DA: '20200113'
(0008, 0021) Series Date DA: '20200113'
(0008, 0023) Content Date DA: '20200113'
(0008, 002a) Acquisition DateTime DT: '20200113142223.000'
(0008, 0030) Study Time TM: '141605'
(0008, 0031) Series Time TM: '141639'
(0008, 0033) Content Time TM: '142223'
(0008, 0050) Accession Number SH: '20080940/17'
(0008, 0060) Modality CS: 'US'
(0008, 0070) Manufacturer LO: 'GE Vingmed Ultrasound'
(0008, 0080) Institution Name LO: 'XXXXXXXXXXXXXXXXXX'
(0008, 0090) Referring Physician's Name PN: ''
(0008, 1010) Station Name SH: 'VIVID7-AB'
(0008, 1030) Study Description LO: 'Ecocardiografia Doppler'
(0008, 1050) Performing Physician's Name PN: 'Default'
(0008, 1070) Operators' Name PN: 'ADM'
(0008, 1090) Manufacturer's Model Name LO: 'Vivid7'
(0008, 2111) Derivation Description ST: '[EMGDCM] Lossless Compression (JPEG p14), Selection Value = 1, Point Transform = 0, compression ratio = 3.417266'
(0010, 0010) Patient's Name PN: 'XXXXXXXXXXXXXXXXXX'
(0010, 0020) Patient ID LO: 'XXXXXXXXXXXX'
(0010, 0030) Patient's Birth Date DA: '19770609'
(0010, 0040) Patient's Sex CS: 'F'
(0018, 1020) Software Version(s) LO: 'Vivid7:4.2.0'
(0018, 6011) Sequence of Ultrasound Regions 1 item(s) ----
(0018, 6012) Region Spatial Format US: 1
(0018, 6014) Region Data Type US: 2
(0018, 6016) Region Flags UL: 0
(0018, 6018) Region Location Min X0 UL: 80
(0018, 601a) Region Location Min Y0 UL: 8
(0018, 601c) Region Location Max X1 UL: 556
(0018, 601e) Region Location Max Y1 UL: 391
(0018, 6020) Reference Pixel X0 SL: 238
(0018, 6022) Reference Pixel Y0 SL: -8
(0018, 6024) Physical Units X Direction US: 3
(0018, 6026) Physical Units Y Direction US: 3
(0018, 602c) Physical Delta X FD: 0.04603580745589702
(0018, 602e) Physical Delta Y FD: 0.04603580745589702
(0018, 6030) Transducer Frequency UL: 1702
(0018, 6032) Pulse Repetition Frequency UL: 4000
(0020, 000d) Study Instance UID UI: 1.2.826.0.1.3680043.2.97.1.1.1516127677.2001031016198050
(0020, 000e) Series Instance UID UI: 1.2.840.113619.2.98.5380.1578912657.0.12310
(0020, 0010) Study ID SH: '20080940/17'
(0020, 0011) Series Number IS: "0002"
(0020, 0013) Instance Number IS: "0013"
(0020, 0020) Patient Orientation CS: ''
(0028, 0002) Samples per Pixel US: 3
(0028, 0004) Photometric Interpretation CS: 'RGB'
(0028, 0006) Planar Configuration US: 0
(0028, 0010) Rows US: 434
(0028, 0011) Columns US: 636
(0028, 0100) Bits Allocated US: 8
(0028, 0101) Bits Stored US: 8
(0028, 0102) High Bit US: 7
(0028, 0103) Pixel Representation US: 0
(0038, 0010) Admission ID LO: '2131087'
(0040, 0275) Request Attributes Sequence 1 item(s) ----
(0040, 0007) Scheduled Procedure Step Descriptio LO: 'Ecocardiografia Doppler'
(0040, 0008) Scheduled Protocol Code Sequence 1 item(s) ----
(0008, 0100) Code Value SH: 'US'
(0008, 0102) Coding Scheme Designator SH: 'EXUS'
(0008, 0104) Code Meaning LO: 'US'
---------
(0040, 0009) Scheduled Procedure Step ID SH: 'EXUS252375'
(0040, 1001) Requested Procedure ID SH: '20080940/17'
---------
(7fe0, 0010) Pixel Data OB: Array of 242300 elements
示例图片如下:
图像评论属性 (0020,4000) 是通用图像模块的一部分。参见:https://dicom.innolitics.com/ciods/cr-image/general-image
模块将属性定义为"Type 3",这意味着它可能存在也可能不存在。所以你不能依赖存在的属性。
如果您只需要一张带有属性的图片,例如出于测试目的,您可以使用 DICOM 编辑器(因为您使用的是 DCMTK,dcmodify 可能是您选择的工具)来添加它。
您在问题中提到的属性 (0020,4000 [Image Comments]
) 在您 post 的数据集中不存在。因此,如果您尝试使用工具包查找它,则无法找到它。此外,它是您正在使用的数据集的 Type 3 属性,这意味着它是完全可选的。
看着你的图片post,我认为这不是你要找的。图像上的文本不是从此属性加载的。很可能,它是像素数据的一部分,或者它作为 DICOM 文本叠加层存储在数据集中。