View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
4D Volume Visualization

4.0 | 2 ratings Rate this file 27 Downloads (last 30 days) File Size: 8.49 KB File ID: #41465 Version: 1.0
image thumbnail

4D Volume Visualization



4D (3D+1) volume visualization with windowing, custom colormaps, and component selection

| Watch this File

File Information

A tool for visualizing vector-valued volumetric data, which has become more common recently in medical imaging (e.g., 3D + time, multi-modal acquisition). The function accepts a 4D matrix, allowing the user to interactively select the 4th dimensional component to display. The 3D volume for the particular component is shown in a neurological coordinate frame with three orthogonal planar views along with a built-in 'slice' visualization. The user may also supply a cell array of colormaps, which populate a menu within the gui.


3 D Volume Visualization inspired this file.

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.14 (R2012a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
13 Jul 2016 Guy Wilson

01 May 2014 Joshua Stough

Response to John:
Thank you for your question John. Your question concerned why certain slicing of your data seem to appear in the wrong orthoplanes. While I am slightly chagrined, the honest response is that I have intentionally permuted and flipdim'd to make my particular data (MRI images in analyze75 format) appear as I want it (RAS). Search for 'permute' and 'flipdim' in the code to customize it for yourself.
As an aside, the particular examples you provide disagree with your own description. For example, Aq(c,:,:,f) is not plotting the xz plane, it's actually the yz plane (all y and all z for a particular x).

Comment only
31 Mar 2014 John

John (view profile)

Hi Joshua,
thanks for your software. I have found it very useful.
I wondered if you would be able to explain something to me. If I plot Aq(constant,:,:,frame), I am plotting the xz plane. When I visualize it with your software, I see this cut in the yz plane. (similar occurrence with Aq(:,constant,:,frame, this time the yz cut appears in xz.) Is there any reason for this, or have I misunderstood something?

Comment only
25 Mar 2014 Mihai

Mihai (view profile)

06 Jul 2013 Joshua Stough

Response to Gustavo: My code doesn't care how you got the image. If it, say 'I', exists in matlab as a 4d array of any class (use size and class functions to determine this), then just try 'vis4d(double(I));' instead of whatever you were doing.

For loading nifti images, exchange #8797 seems popular:

Good luck,

Comment only
05 Jul 2013 Gustavo

Hi. I have started working with you toolboxes but i can't get any results. I have NIFTI images to work with. How can i adapt them to your toolbox?

Thanks in advance

Comment only

Contact us