Be the first to rate this file! 7 Downloads (last 30 days) File Size: 1.79 KB File ID: #40503

Create a quadratic Matrix of DICOM images

by Thomas Lindner

 

25 Feb 2013 (Updated 26 Feb 2013)

Load all DICOM images, change the Matrix size and save them again, keeping the header (Metadata).

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.10 (R2010a)
Tags for This File  
Everyone's Tags
dicom, dicom header, image, load dicom, matrix, matrix size, metadata, quadratic, quadratic matrix, save dicom, size
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
26 Feb 2013

changed the Description

Contact us