How do i read numeric values from dicom file

3 次查看(过去 30 天)
I can display the following dicom data file. But I really need a command or commands to get to the numerical values. How do I get there. I tried group element and UID . Nothing gets me there. I need to be able to read this file and store the Values and manipulate them.
here is the file:
>> dicomdisp('rtplan.dcm')
File: C:\Users\Robbie\OneDrive\DoseCalc Program\rtplan.dcm (2780 bytes)
Read on an IEEE little-endian machine.
File begins with group 0002 metadata at byte 132.
Transfer syntax: 1.2.840.10008.1.2 (Implicit VR Little Endian).
DICOM Information object: 1.2.840.10008.5.1.4.1.1.481.5 (RT Plan Storage).
Location Level Tag VR Size Name Data
----------------------------------------------------------------------------------------------------
0000132 0 (0002,0000) UL 4 bytes - FileMetaInformationGroupLength *Binary*
0000144 0 (0002,0001) OB 2 bytes - FileMetaInformationVersion *Binary*
0000158 0 (0002,0002) UI 30 bytes - MediaStorageSOPClassUID [1.2.840.10008.5.1.4.1.1.481.5 ]
0000196 0 (0002,0003) UI 56 bytes - MediaStorageSOPInstanceUID [2.16.840.1.113669.2.931128.5221112.20171026093753.747047]
0000260 0 (0002,0010) UI 18 bytes - TransferSyntaxUID [1.2.840.10008.1.2 ]
0000286 0 (0002,0012) UI 32 bytes - ImplementationClassUID [2.16.840.1.113669.2.931128.16.0 ]
0000326 0 (0002,0013) SH 14 bytes - ImplementationVersionName [PINN_SCP_16_0 ]
0000348 0 (0008,0005) CS 10 bytes - SpecificCharacterSet [ISO_IR 100]
0000366 0 (0008,0012) DA 8 bytes - InstanceCreationDate [20171026]
0000382 0 (0008,0013) TM 6 bytes - InstanceCreationTime [093753]
0000396 0 (0008,0016) UI 30 bytes - SOPClassUID [1.2.840.10008.5.1.4.1.1.481.5 ]
0000434 0 (0008,0018) UI 56 bytes - SOPInstanceUID [2.16.840.1.113669.2.931128.5221112.20171026093753.747047]
0000498 0 (0008,0020) DA 8 bytes - StudyDate [20170927]
0000514 0 (0008,0030) TM 14 bytes - StudyTime [141950.000000 ]
0000536 0 (0008,0050) SH 0 bytes - AccessionNumber []
0000544 0 (0008,0060) CS 6 bytes - Modality [RTPLAN]
0000558 0 (0008,0070) LO 4 bytes - Manufacturer [ADAC]
0000570 0 (0008,0090) PN 6 bytes - ReferringPhysicianName [SAMPLE]
0000584 0 (0008,1010) SH 6 bytes - StationName [pinn1 ]
0000598 0 (0008,1070) PN 0 bytes - OperatorName []
0000606 0 (0008,1090) LO 10 bytes - ManufacturerModelName [Pinnacle3 ]
0000624 0 (0008,1110) SQ 94 bytes - ReferencedStudySequence
0000632 1 (FFFE,E000) UN 86 bytes - Item
0000640 2 (0008,1150) UI 24 bytes - ReferencedSOPClassUID [1.2.840.10008.3.1.2.3.2 ]
0000672 2 (0008,1155) UI 46 bytes - ReferencedSOPInstanceUID [2.16.840.1.113662.2.12.0.3222.1505397164.13046]
0000726 0 (0010,0010) PN 26 bytes - PatientName [PHANTOM^ELECTRON DENSITY^^]
0000760 0 (0010,0020) LO 6 bytes - PatientID [07390 ]
0000774 0 (0010,0030) DA 0 bytes - PatientBirthDate []
0000782 0 (0010,0040) CS 2 bytes - PatientSex [F ]
0000792 0 (0018,1020) LO 10 bytes - SoftwareVersion [9.10\9.10 ]
0000810 0 (0020,000D) UI 46 bytes - StudyInstanceUID [2.16.840.1.113662.2.12.0.3222.1505397164.13046]
0000864 0 (0020,000E) UI 56 bytes - SeriesInstanceUID [2.16.840.1.113669.2.931128.5221112.20171026093753.753167]
0000928 0 (0020,0010) SH 4 bytes - StudyID [997 ]
0000940 0 (0020,0011) IS 4 bytes - SeriesNumber [900 ]
0000952 0 (0020,0052) UI 46 bytes - FrameOfReferenceUID [2.16.840.1.113662.2.12.0.3222.1505397164.13047]
0001006 0 (0020,1040) LO 0 bytes - PositionReferenceIndicator []
0001014 0 (300A,0002) SH 8 bytes - RTPlanLabel [Plan_0.0]
0001030 0 (300A,0003) LO 6 bytes - RTPlanName [Plan_0]
0001044 0 (300A,0006) DA 8 bytes - RTPlanDate [20171026]
0001060 0 (300A,0007) TM 6 bytes - RTPlanTime [093753]
0001074 0 (300A,000C) CS 16 bytes - RTPlanGeometry [TREATMENT_DEVICE]
0001098 0 (300A,0040) SQ 34 bytes - ToleranceTableSequence
0001106 1 (FFFE,E000) UN 26 bytes - Item
0001114 2 (300A,0042) IS 2 bytes - ToleranceTableNumber [3 ]
0001124 2 (300A,0043) SH 8 bytes - ToleranceTableLabel [General ]
0001140 0 (300A,0070) SQ 136 bytes - FractionGroupSequence
0001148 1 (FFFE,E000) UN 128 bytes - Item
0001156 2 (300A,0071) IS 2 bytes - FractionGroupNumber [1 ]
0001166 2 (300A,0078) IS 2 bytes - NumberOfFractionsPlanned [1 ]
0001176 2 (300A,0080) IS 2 bytes - NumberOfBeams [1 ]
0001186 2 (300A,00A0) IS 2 bytes - NumberOfBrachyApplicationSetups [0 ]
0001196 2 (300C,0004) SQ 80 bytes - ReferencedBeamSequence
0001204 3 (FFFE,E000) UN 72 bytes - Item
0001212 4 (300A,0082) DS 22 bytes - BeamDoseSpecificationPoint [12.38\-295.41\-1.75932]
0001242 4 (300A,0084) DS 10 bytes - BeamDose [0.0284788 ]
0001260 4 (300A,0086) DS 6 bytes - BeamMeterset [142.8 ]
0001274 4 (300C,0006) IS 2 bytes - ReferencedBeamNumber [1 ]
0001284 0 (300A,00B0) SQ 1432 bytes - BeamSequence
0001292 1 (FFFE,E000) UN 1424 bytes - Item
0001300 2 (0008,0070) LO 6 bytes - Manufacturer [Varian]
0001314 2 (0008,0080) LO 10 bytes - InstitutionName [CRCC v9.6 ]
0001332 2 (300A,00B2) SH 8 bytes - TreatmentMachineName [TrueBeam]
0001348 2 (300A,00B3) CS 2 bytes - PrimaryDosimeterUnit [MU]
0001358 2 (300A,00B4) DS 4 bytes - SourceAxisDistance [1000]
0001370 2 (300A,00B6) SQ 372 bytes - BeamLimitingDeviceSequence
0001378 3 (FFFE,E000) UN 36 bytes - Item
0001386 4 (300A,00B8) CS 6 bytes - RTBeamLimitingDeviceType [ASYMX ]
0001400 4 (300A,00BA) DS 4 bytes - SourceToBeamLimitingDeviceDistance [445 ]
0001412 4 (300A,00BC) IS 2 bytes - NumberOfLeafJawPairs [1 ]
0001422 3 (FFFE,E000) UN 36 bytes - Item
0001430 4 (300A,00B8) CS 6 bytes - RTBeamLimitingDeviceType [ASYMY ]
0001444 4 (300A,00BA) DS 4 bytes - SourceToBeamLimitingDeviceDistance [358 ]
0001456 4 (300A,00BC) IS 2 bytes - NumberOfLeafJawPairs [1 ]
0001466 3 (FFFE,E000) UN 276 bytes - Item
0001474 4 (300A,00B8) CS 4 bytes - RTBeamLimitingDeviceType [MLCX]
0001486 4 (300A,00BA) DS 6 bytes - SourceToBeamLimitingDeviceDistance [538.3 ]
0001500 4 (300A,00BC) IS 2 bytes - NumberOfLeafJawPairs [60]
0001510 4 (300A,00BE) DS 232 bytes - LeafPositionBoundaries [-200\-190\-180\-170\-160\-150\-140\-130\-120\-110\-100\-95\-90\-85\-80\-75\-70\-65\-60\-55\-50\-45\-40\-35\-30\-25\-20\-15\-10\-5\0\5\10\15\20\25\30\35\40\45\50\55\60\65\70\75\80\85\90\95\100\110\120\130\140\150\160\170\180\190\200 ]
0001750 2 (300A,00C0) IS 2 bytes - BeamNumber [1 ]
0001760 2 (300A,00C2) LO 16 bytes - BeamName [Isocenter_beam1 ]
0001784 2 (300A,00C4) CS 6 bytes - BeamType [STATIC]
0001798 2 (300A,00C6) CS 6 bytes - RadiationType [PHOTON]
0001812 2 (300A,00CE) CS 10 bytes - TreatmentDeliveryType [TREATMENT ]
0001830 2 (300A,00D0) IS 2 bytes - NumberOfWedges [0 ]
0001840 2 (300A,00E0) IS 2 bytes - NumberOfCompensators [0 ]
0001850 2 (300A,00ED) IS 2 bytes - NumberOfBoli [0 ]
0001860 2 (300A,00F0) IS 2 bytes - NumberOfBlocks [0 ]
0001870 2 (300A,010E) DS 2 bytes - FinalCumulativeMetersetWeight [1 ]
0001880 2 (300A,0110) IS 2 bytes - NumberOfControlPoints [2 ]
0001890 2 (300A,0111) SQ 806 bytes - ControlPointSequence
0001898 3 (FFFE,E000) UN 770 bytes - Item
0001906 4 (300A,0112) IS 2 bytes - ControlPointIndex [0 ]
0001916 4 (300A,0114) DS 2 bytes - NominalBeamEnergy [6 ]
0001926 4 (300A,0115) DS 4 bytes - DoseRateSet [400 ]
0001938 4 (300A,011A) SQ 548 bytes - BeamLimitingDevicePositionSequence
0001946 5 (FFFE,E000) UN 30 bytes - Item
0001954 6 (300A,00B8) CS 6 bytes - RTBeamLimitingDeviceType [ASYMX ]
0001968 6 (300A,011C) DS 8 bytes - LeafJawPositions [-100\50 ]
0001984 5 (FFFE,E000) UN 30 bytes - Item
0001992 6 (300A,00B8) CS 6 bytes - RTBeamLimitingDeviceType [ASYMY ]
0002006 6 (300A,011C) DS 8 bytes - LeafJawPositions [-50\100 ]
0002022 5 (FFFE,E000) UN 464 bytes - Item
0002030 6 (300A,00B8) CS 4 bytes - RTBeamLimitingDeviceType [MLCX]
0002042 6 (300A,011C) DS 444 bytes - LeafJawPositions [0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\-100\-100\-100\-100\-100\-100\-100\-100\-100\-100\-100\-100\-100\-100\-100\-100\-100\-100\-100\-100\-100\-100\-100\-100\-100\-100\-100\-100\-100\-100\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\-44.2\-44.2\-44.2\-43.8\-44.8\-46.7\-48.2\-50.2\-52.3\-52.7\-53.2\-53.2\-53.2\-53.2\-52.7\-43.8\48.3\49.8\49.8\49.8\37.7\-22.7\-55.2\-58.2\-61.3\-64.2\-65.7\-65.7\-65.7\-65.7\0\0\0\0\0\0\0\0\0\0]
0002494 4 (300A,011E) DS 6 bytes - GantryAngle [ 0.0]
0002508 4 (300A,011F) CS 4 bytes - GantryRotationDirection [NONE]
0002520 4 (300A,0120) DS 6 bytes - BeamLimitingDeviceAngle [ 0.0]
0002534 4 (300A,0121) CS 4 bytes - BeamLimitingDeviceRotationDirection [NONE]
0002546 4 (300A,0122) DS 6 bytes - PatientSupportAngle [ 0.0]
0002560 4 (300A,0123) CS 4 bytes - PatientSupportRotationDirection [NONE]
0002572 4 (300A,0125) DS 4 bytes - TableTopEccentricAngle [0.0 ]
0002584 4 (300A,0126) CS 4 bytes - TableTopEccentricRotationDirection [NONE]
0002596 4 (300A,0128) DS 0 bytes - TableTopVerticalPosition []
0002604 4 (300A,0129) DS 0 bytes - TableTopLongitudinalPosition []
0002612 4 (300A,012A) DS 0 bytes - TableTopLateralPosition []
0002620 4 (300A,012C) DS 22 bytes - IsocenterPosition [12.38\-295.41\-1.75932]
0002650 4 (300A,0130) DS 8 bytes - SourceToSurfaceDistance [848.183 ]
0002666 4 (300A,0134) DS 2 bytes - CumulativeMetersetWeight [0 ]
0002676 3 (FFFE,E000) UN 20 bytes - Item
0002684 4 (300A,0112) IS 2 bytes - ControlPointIndex [1 ]
0002694 4 (300A,0134) DS 2 bytes - CumulativeMetersetWeight [1 ]
0002704 2 (300C,006A) IS 2 bytes - ReferencedPatientSetupNumber [1 ]
0002714 2 (300C,00A0) IS 2 bytes - ReferencedToleranceTableNumber [3 ]
0002724 0 (300A,0180) SQ 30 bytes - PatientSetupSequence
0002732 1 (FFFE,E000) UN 22 bytes - Item
0002740 2 (0018,5100) CS 4 bytes - PatientPosition [HFS ]
0002752 2 (300A,0182) IS 2 bytes - PatientSetupNumber [1 ]
0002762 0 (300E,0002) CS 10 bytes - ApprovalStatus [UNAPPROVED]

回答(1 个)

Image Analyst
Image Analyst 2017-10-29
Did you try the dicomread() function?

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by