File Exchange

image thumbnail

imshow3Dfull

version 2.5.1.0 (4.01 KB) by Maysam Shahedi
imshow3Dfull displays 3D images slice by slice in 3 orthogonal views, with mouse control

32 Downloads

Updated 29 Oct 2018

View License

imshow3Dfull is an extended version of imshow3D. It displays 3D grayscale or RGB images from three perpendicular views(i.e. axial, sagittal, and coronal) in slice by slice fashion with mouse based slice browsing and window and level adjustment control.
Usage:
imshow3Dfull ( Image )
imshow3Dfull ( Image , [] )
imshow3Dfull ( Image , [LOW HIGH] )

Image: 3D image MxNxK (K slices of MxN images)
[LOW HIGH]: display range that controls the display intensity range of a grayscale image (default: the widest available range)
Use the scroll bar or mouse scroll wheel to switch between slices. To adjust window and level values keep the mouse right button pressed and drag the mouse up and down (for level adjustment) or right and left (for window adjustment).
Use "A", "S", and "C" buttons to switch between axial, sagittal and coronal views, respectivelly.

"Auto W/L" button adjusts the window and level automatically.
While "Fine Tune" check box is checked the window/level adjustment gets 16 times less sensitive to mouse movement, to make it easier to control display intensity rang.

Note: The sensitivity of mouse based window and level adjustment is set based on the user defined display intensity range; the wider the range the more sensitivity to mouse drag.

Example
--------
% Display an image (MRI example)
load mri
Image = squeeze(D);
figure,
imshow3Dfull(Image)

% Display the image, adjust the display range
figure,
imshow3Dfull(Image,[20 100]);

Cite As

Maysam Shahedi (2019). imshow3Dfull (https://www.mathworks.com/matlabcentral/fileexchange/47463-imshow3dfull), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (11)

Rob Campbell

Thanks, this is very handy. I have refactored and streamlined the code and converted to a class: https://github.com/raacampbell/volView It currently doesn't do much more than than what imshow3Dfull but in future it will. For details on what was changed see README and commit messages. See README for plans on what will change.

Patrick Hew

Does what is says it does.

Ran Kafri

Mohammad

It is really amazing, clear, useful and well organised! Many thanks for this excellent work.

Dror Cohen

Hi Maysam, thank you for this excellent tool. I would recommend supporting 3D color images as well. It will be a useful feature, and easy to implement. For more information, see: http://stackoverflow.com/questions/36892992/matlab-imshow-for-3d-color-image/36893509?noredirect=1#comment61352634_36893509

Je

Works in older versions of Matlab if you change the flip function to flipdim

Fereshteh

Thanks for sharing this file.
Unfortunately it uses flip function which was introduced in R2013b. I can not run the program on my PC. I am hoping you could release a new version that is compatible with earlier versions of MATLAB.

Updates

2.5.1.0

Bug fixed

2.5.0.0

Now it works also for 3D RGB images and older MATLAB versions.

1.1.0.0

Note: It does not work in older versions of Matlab.

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

Inspired: volView