Medical Image Reader and Viewer

A toolbox to handle reading, viewing, and writing dicom images, supporting simultaneous PET/MR
Updated 23 Mar 2018

View License

This toolbox can read and write medical imaging data in dicom format with the 'readImages' function. The output of this function is a structure containing attributes of the image or volume. This structure can then be used as input into other functions in the toolbox.
This toolbox supports:
- reading and writing of dicom data
- mapping of volume voxel locations
- oblique slice alignment and registration
- manual 3D image rotation
- selecting and extracting single voxel coordinates
- drawing 2D or 3D region-of-interest masks
- coregistered image viewing supports PET/CT and PET/MR

CT = readImages([CT_ImageDirectoryPath]);
PET = readImages([PET_ImageDirectoryPath]);
coords = VolumeViewer3D(PET,CT,'getCoords');
mask = VolumeViewer3D(PET,CT,'drawROI');

Cite As

Josh Schaefferkoetter (2024). Medical Image Reader and Viewer (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!


Version Published Release Notes

fixed high DPI display bug

bug with reading dicom

small bug with writing dicom

improved input handling



Version check for high DPI displays

fixed bug for reading dicom files with no extension

performance tweaks

updated examples

faster image coregistration

minor improvements

incomplete filename bug fix

ability to combine 2D and 3D, and volume and mask inputs

improved input and error handling
UI formatted for high DPI displays

corrected dicom tag writing
updated examples
updated examples

Ability to draw and output 2D or 3D mask

output structure initialization

modified coregistration

GE and Philips series naming convention bug fix

minor tweaks

fixed smoothing functionality

small bug fix

minor tweaks and enhancements

updated examples

faster and more accurate interpolation

performance improvements

bug fixes

improved handling of large image matrices

faster and more efficient memory handling