Gantry detector tilt correction

Transforms CT DICOMs with Gantry tilt angle

You are now following this Submission

User Phil Lewis reasonably modified my first script by using 'imtransform' instead of translation. Still the problem with incorrect transformation of overlapping slices remained. I modified it to calculate the offset by using 'SliceLocation' and not the 'InstanceNumber'. Also there is more returned information in the command window for the user, who can now select input and output directory or overwrite the input files. If there is more than one series in a input folder, this folder will be skipped. Also mixed modalities or modality different than CT, as well as Gantry-free files will not be transformed.
If you have some specific need like transforming several series at the time or similar, feel free to contact me.

Cite As

Denny Milakara (2026). Gantry detector tilt correction (https://www.mathworks.com/matlabcentral/fileexchange/28141-gantry-detector-tilt-correction), 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.5.0.0

The transform matrix had always positiv sign. Now the transform matrix's sign is set to be opposite from the tilt angle.

1.4.0.0

Wrong sign for negative angles corrected.

1.2.0.0

Wrong transformation when tilt angle is negative.

1.0.0.0