matlabplot3dvisualizationvolume-rendering

Matlab 3d volume visualization and 3d overlay


The question is pretty much the title.

I have a 3d volume loaded as raw data [256, 256, 256] = size(A). It contains only values of zero's and ones, where the 1's represent the structure and 0's the "air".

I want to visualize the structure in MATLAB and then run an algorithm on it and put an overlay on it, let's say in the color red.

So to be more precise:

  1. How do i visualize the 3d volume. 0's transparent, 1's semitransparent?
  2. Plot a line in the 3d visualization as an overlay?

I already read the MathWorks tutorials and they didn't help. I tried using the set command, but it fails completely saying for every property I try "invalid root property".


Solution

  • There's an excellent utility called vol3d, by mathworks employee Joe Conti. I think it addresses your visualization needs exactly - give it a try.

    Update (11/2012): File that is linked to above no longer exists. There is a new version here though.