ct3 - A Simple Mousewheel-based 3D Image Browser for Medical Images
File exchange contains a wealth of full-functioned, gui-based 3D medical image viewers. ct3 is a simple alternative that plots a 3D array containing CT or MRI greyscale values into 3 separate windows, and allows the use of the mousewheel to page from slice to slice. It allows the user to quickly identify features of interest and determine their location within the image.
function ct3(im,w)
Allows simple browsing of a CT scan using the mousewheel. Assumes a grid
spacing ratio of 3:1 axial thickness:radial thickness for display purposes
Usage: ct3(im) will open Figures 1,2, and 3 and use imshow() to display the
CT dataset contained in "im" in all 3 orthogonal planes (sagittal,
coronal, axial). Scrolling the mousewheel will move to the
next/previous slice in the active figure window. Clicking the mouse
will print the current slice number of all figure windows in
the console.
input:
-im: 3D array of grayscale values. This function assumes that the
1st and 2nd dimensions of the array contain the radial (or
sagittal/coronal) data, and the 3rd dimension of "im" contains
axial data. This function also assumes a voxel size ratio of
1:1:3.
-w : (optional) window to use for display. Default=[-140 160]
1x2 numerical array that contains the range of values of interest
to be displayed using ct3
note - use Matlab built-in function "imcontrast" (Image Proc Toolbox)
or plot the image data using hist() to easily determine the proper
window for your dataset
output:
none
ex:
ct3(im)
ct3(im, [-140 160])
Cite As
Tripp (2024). ct3 - A Simple Mousewheel-based 3D Image Browser for Medical Images (https://www.mathworks.com/matlabcentral/fileexchange/32173-ct3-a-simple-mousewheel-based-3d-image-browser-for-medical-images), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Industries > Medical Devices > DICOM Format >
- MATLAB > Graphics > Images > Display Image >
- Sciences > Physics > Medical Physics >
- Engineering > Biomedical Engineering > Biomedical Imaging >
Tags
Acknowledgements
Inspired: Complex 3D data viewer for MRI images/spectra, overlayVolume
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.