GetTransformMatrix

This code calculates the transform matrix between two image coordinates.

You are now following this Submission

It first transforms to patient coordinates and then to the second coordinates. Both dicom image sets should have the same localizer while scanning.
It takes two inputs: dicominfo structures (taken by dicominfo mmand) of two image sets. The outputs are 4x4 transform matrix and 3x3 rotation matrix.
The code is developed with the help of the document written by David Atkinson (http://cmic.cs.ucl.ac.uk/fileadmin/cmic/Documents/DavidAtkinson/DICOM_6up.pdf).
This code is developed by BUMIL (Bogazici University Medical Imaging Lab) in Istanbul, Turkey.

Cite As

Alper Yaman (2026). GetTransformMatrix (https://se.mathworks.com/matlabcentral/fileexchange/24277-gettransformmatrix), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.3.0.1

Scaling matrix has been updated, only SpacingBetweenSlices has been used anymore.

1.3.0.0

Lab info

1.0.0.0