In [3]:
import dicom

In [4]:
#Importing images from dropbox
from dropbox_path import dropbox_path
dropbox_path()
file_path = dropbox_path() + '\MicroCT\\Dicom images\C0001656_00000.DCM'

In [5]:
#reading the dicom file
plan = dicom.read_file(file_path)

In [6]:
plan.dir


Out[6]:
<bound method FileDataset.dir of (0008, 0008) Image Type                          CS: ['ORIGINAL', 'PRIMARY', 'AXIAL']
(0008, 0016) SOP Class UID                       UI: CT Image Storage
(0008, 0018) SOP Instance UID                    UI: 2.16.756.5.23.6502.67.1656.3.20140903122438.598413229.0
(0008, 0020) Study Date                          DA: '20140903'
(0008, 0021) Series Date                         DA: '20140903'
(0008, 0022) Acquisition Date                    DA: ''
(0008, 0023) Content Date                        DA: '20140903'
(0008, 0030) Study Time                          TM: '122438'
(0008, 0031) Series Time                         TM: '122438'
(0008, 0032) Acquisition Time                    TM: ''
(0008, 0033) Content Time                        TM: '122438'
(0008, 0050) Accession Number                    SH: ''
(0008, 0060) Modality                            CS: 'CT'
(0008, 0070) Manufacturer                        LO: 'SCANCO Medical'
(0008, 0080) Institution Name                    LO: ''
(0008, 0090) Referring Physician's Name          PN: ''
(0008, 1030) Study Description                   LO: ''
(0008, 103e) Series Description                  LO: 'Linear Attenuation [1/cm] (2630)'
(0008, 1090) Manufacturer's Model Name           LO: '10'
(0009, 0010) Private Creator                     LO: 'SCANCO version'
(0009, 1000) Private tag data                    SH: 'SCANCO_V1.2a'
(0009, 1001) Private tag data                    IS: '3'
(0010, 0010) Patient's Name                      PN: 'AL - ahmed UAB - glass composite'
(0010, 0020) Patient ID                          LO: '233'
(0010, 0030) Patient's Birth Date                DA: ''
(0010, 0040) Patient's Sex                       CS: ''
(0018, 0050) Slice Thickness                     DS: '1.000000e-02'
(0018, 0060) KVP                                 DS: '4.500000e+01'
(0018, 0090) Data Collection Diameter            DS: '2.048000e+01'
(0018, 1000) Device Serial Number                LO: '6502'
(0018, 1020) Software Version(s)                 LO: ''
(0018, 1050) Spatial Resolution                  DS: ''
(0018, 1110) Distance Source to Detector         DS: ''
(0018, 1111) Distance Source to Patient          DS: ''
(0018, 1150) Exposure Time                       IS: '1200'
(0018, 1153) Exposure in uAs                     IS: '240'
(0018, 1210) Convolution Kernel                  SH: '3'
(0018, 5100) Patient Position                    CS: ''
(0019, 0010) Private Creator                     LO: 'SCANCO scan parameters'
(0019, 1000) Private tag data                    IS: ['79', '91', '0']
(0019, 1001) Private tag data                    IS: '4'
(0019, 1002) Private tag data                    IS: '2048'
(0019, 1003) Private tag data                    IS: '1000'
(0019, 1004) Private tag data                    IS: '0'
(0019, 1005) Private tag data                    ST: 'dk0:[uct50.data.00000233.00001995]c0001656.isq;'
(0020, 000d) Study Instance UID                  UI: 2.16.756.5.23.6502.67.1656.1111
(0020, 000e) Series Instance UID                 UI: 2.16.756.5.23.6502.67.1656.3.20140903122438.598413229
(0020, 0010) Study ID                            SH: '6502 C1656'
(0020, 0011) Series Number                       IS: '2630'
(0020, 0012) Acquisition Number                  IS: '1995'
(0020, 0013) Instance Number                     IS: '0'
(0020, 0032) Image Position (Patient)            DS: ['7.900000e-01', '9.100000e-01', '7.854500e+01']
(0020, 0037) Image Orientation (Patient)         DS: ['1.000000', '0.000000', '0.000000', '0.000000', '1.000000', '0.000000']
(0020, 0052) Frame of Reference UID              UI: 2.16.756.5.23.6502.67.1656.2222
(0020, 1040) Position Reference Indicator        LO: ''
(0020, 1041) Slice Location                      DS: '7.854500e+01'
(0028, 0002) Samples per Pixel                   US: 1
(0028, 0004) Photometric Interpretation          CS: 'MONOCHROME2'
(0028, 0010) Rows                                US: 1809
(0028, 0011) Columns                             US: 1853
(0028, 0030) Pixel Spacing                       DS: ['1.000000e-02', '1.000000e-02']
(0028, 0100) Bits Allocated                      US: 16
(0028, 0101) Bits Stored                         US: 16
(0028, 0102) High Bit                            US: 15
(0028, 0103) Pixel Representation                US: 1
(0028, 1052) Rescale Intercept                   DS: '0.000000e+00'
(0028, 1053) Rescale Slope                       DS: '1.000000e+00'
(0029, 0010) Private Creator                     LO: 'SCANCO calibration'
(0029, 0011) Private Creator                     LO: 'SCANCO statistics'
(0029, 1000) Private tag data                    IS: '4096'
(0029, 1006) Private tag data                    DS: '0.00000'
(0029, 1100) Private tag data                    LO: 'Linear Attenuation'
(0029, 1101) Private tag data                    LO: '[1/cm]'
(0029, 1102) Private tag data                    DS: '4096.000000'
(0029, 1103) Private tag data                    DS: '-5177.00000'
(0029, 1104) Private tag data                    DS: '30301.00000'
(0029, 1105) Private tag data                    DS: '2902.49536'
(0029, 1106) Private tag data                    DS: '2468.87671'
(0029, 1107) Private tag data                    LO: ''
(0029, 1108) Private tag data                    IS: '0'
(0029, 1109) Private tag data                    IS: '131074'
(7fe0, 0010) Pixel Data                          OW: Array of 6704154 bytes>

In [ ]: