File Exchange

image thumbnail

3D CT/MRI images interactive sliding viewer

version (4.41 KB) by Gang Wang
An interactive tool for users to browse through sagittal, axial and coronal views of CT/MRI images.


Updated 23 May 2011

View Version History

View License

The function's input is just a 3D image. 3 orthogonal slice objects are created in a 3D space. You can grasp one image slice and move your mouse to see the changing image data on the slice. Their motions are confined to translations along the 3rd axis only. Thanks Anders Brun's contribution of moveit2 function on the motion.

While it is moving, the slice object's 'CData' member continuously updated with the image data overlapping with its current position.

Run the following codes to see how it works:

load mri;

All feedbacks are welcomed to

Cite As

Gang Wang (2021). 3D CT/MRI images interactive sliding viewer (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (7)

mohsen Kondori

I have an error:
Field assignment to a non-structure
array object.

Error in moveitZ>startmovit (line 29)
gui.currenthandle = src;

Error while evaluating Surface ButtonDown

and this error is in the moveitx and moveity.
please guide me.

Do Huynh

Matthew Eicholtz

Function did not work in R2015b.


There is some way to scroll through only the z axis and does not appear the x and y?



v. good


Very smooth/ fast movement of slices.
MoveIt functions do not catch out-of-bounds errors.

MATLAB Release Compatibility
Created with R2009a
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!