Hi there, could you please tell me which tag to get this transform
matrix? or how to calculate it?
Here is some tag information might be useful:
Image Orientation [0020, 0037] 1, -0, 0/0, 1, -0
Pixel Spacing [0028, 0030] 1.8/1.8
Image Position [0020, 0032] -118.179626, -114.364075, 505.625275
Slice Thickness [0018, 0050] 3.0
Frame of Reference UID [0020, 0052] 1.2.276.0.7230010.3.1.3.3521924742.13500.1740017298.13448242
But I have no idea how to get (-110.4, -114.2, 439.6), could you please give me some advice? great appreciate!
I seems figure out this problem, because for one MIF/NII, there is only one image position tag, but for DICOM SERIES, each different dcm file contains unique image position tag. Which can cause some difference?
My problem is, when I tried to define a ROI file from VTK and save as nii.gz file, and load it in mrview
or use the ROI file for tckgen
, and no proper result is generated or displayed.
Seems I need to solve the origin
problem to get the correct result.
I read the metadata from ITK-SNAP and here is the origin
point information:
and here is from
mrinfo
gets
transform
like this, I have no idea how to get the data:
But I use ITK instead of DCMTK and VTK to save my-defined ROI and rewrite other parameters, and finally get the same (-110, -114, 439) transform matrix.