Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/315.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 找不到DICOM属性(00204000[图像注释])_Python_Dicom_Pydicom_Dcmtk - Fatal编程技术网

Python 找不到DICOM属性(00204000[图像注释])

Python 找不到DICOM属性(00204000[图像注释]),python,dicom,pydicom,dcmtk,Python,Dicom,Pydicom,Dcmtk,我正在使用pydicom编写一个脚本,以自动化超声波医疗报告 但是,我找不到00204000[Image Comments]属性。我试过使用不同的超声波机器的不同图像,也试过使用dcmtk的dcmdump,但都没有成功 任何帮助都将不胜感激 dicom对象和图像示例如下所示: (0008, 0008) Image Type CS: ['ORIGINAL', 'PRIMARY', '', '0011'] (0008, 0016) SOP Class

我正在使用pydicom编写一个脚本,以自动化超声波医疗报告

但是,我找不到00204000[Image Comments]属性。我试过使用不同的超声波机器的不同图像,也试过使用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

以下是示例图像:


图像注释属性(00204000)是通用图像模块的一部分。见:

模块将属性定义为“类型3”,这意味着它可能存在,但也可能不存在。因此,您不能依赖属性的存在


如果您只需要具有属性的图像,例如出于测试目的,您可以使用DICOM编辑器(当您使用DCMTK时,dcmodify可能是您选择的工具)添加它

您在问题中提到的属性(
00204000[图像注释]
)在您发布的数据集中不存在。所以,如果您试图使用toolkit查找它,则无法找到它。此外,它是您正在使用的数据集的类型3属性,这意味着它是完全可选的


看着你贴的图片,我不认为这是你想要的。图像上的文本不是从该属性加载的。最有可能的是,它是像素数据的一部分,或者作为DICOM文本覆盖存储在数据集中。

看起来它不是注释,而是烧录到图像中。
(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