Gantry detector tilt correction
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 (2024). Gantry detector tilt correction (https://www.mathworks.com/matlabcentral/fileexchange/28141-gantry-detector-tilt-correction), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
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 |