Create a quadratic Matrix of DICOM images
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
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.