GetTransformMatrix

This code calculates the transform matrix between two image coordinates.
1.7K Downloads
Updated Fri, 11 Jan 2019 11:37:44 +0000

View License

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 (2024). GetTransformMatrix (https://www.mathworks.com/matlabcentral/fileexchange/24277-gettransformmatrix), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
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