Create a quadratic Matrix of DICOM images

Load all DICOM images, change the Matrix size and save them again, keeping the header (Metadata).
237 Downloads
Updated 26 Feb 2013

View License

Create a quadratic Matrix of all DICOM images in the specified folder
The files are neither cropped, nor are the images stretched, only the
Matrixsize is changed (all pixels without image data are then filled up with
zeros)

Please keep in mind:

The change is only useful, when ALL images in the folder have the same unequal number of rows and columns (as the size is only determined of the first image!)

If one dimension is odd numbered, the padarray function does not work (I don´t know if that could be the case, personally, I never had an uneven Matrix size). If this happens to someone, please message me.

Cite As

Thomas Lindner (2024). Create a quadratic Matrix of DICOM images (https://www.mathworks.com/matlabcentral/fileexchange/40503-create-a-quadratic-matrix-of-dicom-images), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on DICOM Format in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.1.0.0

changed the Description

1.0.0.0