Heesung Yang
[명령어] dcmdump
- DCMTK 버전: 3.6.5
- DICOM 파일명 :
sample.dcm
모든 태그 출력
~$ dcmdump sample.dcm
# Dicom-File-Format
# Dicom-Meta-Information-Header
# Used TransferSyntax: Little Endian Explicit
(0002,0000) UL 216 # 4, 1 FileMetaInformationGroupLength
(0002,0001) OB 00\01 # 2, 1 FileMetaInformationVersion
(0002,0002) UI =BreastTomosynthesisImageStorage # 30, 1 MediaStorageSOPClassUID
(0002,0003) UI [1.2.840.113845.13.6533.1581875921.128629056237121] # 50, 1 MediaStorageSOPInstanceUID
(0002,0010) UI =JPEGLossless:Non-hierarchical-1stOrderPrediction # 22, 1 TransferSyntaxUID
(0002,0012) UI [1.2.276.0.7230010.3.0.3.6.5] # 28, 1 ImplementationClassUID
(0002,0013) SH [OFFIS_DCMTK_365] # 16, 1 ImplementationVersionName
...
...
특정 태그들만 출력
~$ dcmdump +P 0028,0002 +P 0028,0004 sample.dcm
(0028,0002) US 1 # 2, 1 SamplesPerPixel
(0028,0004) CS [MONOCHROME2] # 12, 1 PhotometricInterpretation
태그들의 계층 구조를 간단한 트리구조로 출력
~$ dcmdump +T sample.dcm
...
...
AcquisitionContextSequence
EntranceDoseInmGy [2.7495]
GenericGroupLength 114
ViewCodeSequence
| Item
| | GenericGroupLength 58
| | CodeValue [R-10226]
| | CodingSchemeDesignator [SRT]
| | CodeMeaning [medio-lateral oblique]
| | GenericGroupLength 12
| | ViewModifierCodeSequence
GenericGroupLength 74
...
...
계층 구조를 순서대로 출력
- Should be used with
+P
option
~$ dcmdump --prepend +P 0008,0100 ${FILE}
(0018,9506).(0040,0260).(0008,0100) SH [FCR2310-0000] # 12, 1 CodeValue
(0040,0260).(0008,0100) SH [FCR2310-0000] # 12, 1 CodeValue
(0054,0220).(0008,0100) SH [R-10226] # 8, 1 CodeValue
(5200,9229).(0008,9124).(0008,9215).(0008,0100) SH [113074] # 6, 1 CodeValue
(5200,9229).(0020,9071).(0008,2218).(0008,0100) SH [T-04000] # 8, 1 CodeValue
파일 이름과 함께 출력
~$ dcmdump +F +P 0028,0004 *.dcm
# dcmdump (1/4): LCC.dcm
(0028,0004) CS [MONOCHROME2] # 12, 1 PhotometricInterpretation
# dcmdump (2/4): LMLO.dcm
(0028,0004) CS [MONOCHROME2] # 12, 1 PhotometricInterpretation
# dcmdump (3/4): RCC.dcm
(0028,0004) CS [MONOCHROME2] # 12, 1 PhotometricInterpretation
# dcmdump (4/4): RMLO.dcm
(0028,0004) CS [MONOCHROME2] # 12, 1 PhotometricInterpretation
UID 값을 이름으로 치환하지 않고 값 그대로 출력
-
default
~$ dcmdump +P 0002,0002 LCC.dcm
(0002,0002) UI =DigitalMammographyXRayImageStorageForPresentation # 28, 1 MediaStorageSOPClassUID
-
do not map
~$ dcmdump -Un +P 0002,0002 LCC.dcm
(0002,0002) UI [1.2.840.10008.5.1.4.1.1.1.2] # 28, 1 MediaStorageSOPClassUID
색상을 넣어서 출력
~$ dcmdump +C ${FILE}
Previous post
CentOS 7 HA 클러스터 생성 방법(pacemaker, drbd, docker-compose)Next post
[명령어] iptables