Dicom directory (of slices) to 3D volume image
by Ariel Balter
27 Mar 2009
(Updated 07 Apr 2009)
Read a series of dicom slice images to a 3D volume image and meta data.
|
Watch this File
|
| File Information |
| Description |
This function reads all good dicom files in a given directory and outputs a volume image. The slices are sorted by the SliceLocation tag in the image header. If no directory is specified, it opens a folder browser.
It also collects user specified (or default) header information for each slice and calculates some additional data for each slice such as the physical width and height of the image (e.g. PhysicalWidth = PixelWidth(1)*Rows). It also determines some meta data about the image such as the physical aspect ratio which is useful for volume rendering utilities.
Finally, it saves all the data to the dicom directory as a MAT file. In the future, the user will be able to switch the file saving on and off, and also specify alternate formats. |
| Acknowledgements |
The author wishes to acknowledge the following in the creation of this submission:
3D Free Form Image Registration Toolbox (GUI), Read and write single file dicom volumes, isdicom
|
| MATLAB release |
MATLAB 7.7 (R2008b)
|
| Other requirements |
isdicom http://www.mathworks.com/matlabcentral/fileexchange/11431 |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 30 Mar 2009 |
Fixed a bug. |
| 31 Mar 2009 |
Fixed a few bugs. Better handling of empty directories or insufficient header info for some calculations. Slight improvements to documentation and organization. |
| 07 Apr 2009 |
Added robustness in handling directories with subdirectories (Mac OSIRIX users end up with these), very large data sets (>2GB), and missing header info. Changed screen outputs to fprintf in case user wants to compile. |
|
Contact us at files@mathworks.com