I am confuzed in the understanding of dicom coordinate system.
I display dicom information with SimpleITK
:
import SimpleITK as sitk
path1 = 'C:\\Users\\Administrator\\Desktop\\medspro\\Data\\dce1\\IMG-0001-00001.dcm'
path2 = 'C:\\Users\\Administrator\\Desktop\\medspro\\Data\\dce1\\IMG-0001-00080.dcm'
# path1 = 'C:\\Users\\Administrator\\Desktop\\medspro\\Data\\Chang Cheng\\TOF\\IM_0174'
# path2 = 'C:\\Users\\Administrator\\Desktop\\medspro\\Data\\Chang Cheng\\TOF\\IM_0293'
img1 = sitk.ReadImage(path1)
print('img 1---------------------------------------')
print('instance number: ', img1.GetMetaData('0020|0013'))
print('direction: ', img1.GetDirection())
print('position: ', img1.GetOrigin())
img2 = sitk.ReadImage(path2)
print('img 2---------------------------------------')
print('instance number: ', img2.GetMetaData('0020|0013'))
print('direction: ', img2.GetDirection())
print('position: ', img2.GetOrigin())
Please have a look for the information of two dicom files which come from a DCE
sequence:
img 1---------------------------------------
instance number: 1
direction: (1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0)
position: (-226.074, -211.921, 69.1556)
img 2---------------------------------------
instance number: 80
direction: (1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0)
position: (-226.074, -211.921, -128.344)
The direction
shows the z-direction
is [0, 0, 1]
. From the instance change from 1 to 80, the z-value
of patient position decrease from 69 to -128.
For another two dicom files from a TOF
sequence:
img 1---------------------------------------
instance number: 1
direction: (0.9984669087122222, 0.0, -0.055351894336681175, 0.0, 1.0000000000000002, 0.0, 0.055351894336681175, 0.0, 0.9984669087122222)
position: (-107.45459007851, -165.12128686904, 81.0415926597073)
img 2---------------------------------------
instance number: 120
direction: (0.9984669087122222, 0.0, -0.055351894336681175, 0.0, 1.0000000000000002, 0.0, 0.055351894336681175, 0.0, 0.9984669087122222)
position: (-112.06539940468, -165.12128686904, 164.213925423379)
The z-direction
is nearly [0, 0, 1]
. From the instance change from 1 to 120, the z-value
of patient position increase from 81 to 164.
For the above two situation, the z-direction
is both about [0, 0, 1]
, with the instance number increases, why the z-value
of patient position is increased in TOF
sequence but decreased in DCE
sequence?
Any suggestion is appreciated~~~