Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

My goal: How to (1) construct 3D image for visualization. (2) how to write 3D array or image into binary raw file.

Is there a way to accomplish this in Mathematica?

Alternative_Answer for: (1)

slices={1,2,3,4,5};
ss = Map[ImageData, slices];
ListContourPlot3D[ss, Mesh -> None, Contours -> Automatic]
share|improve this question
1  
I think 1st part of the question was answered here: mathematica.stackexchange.com/questions/6247/… –  Vitaliy Kaurov Jun 1 '12 at 18:53
add comment

1 Answer

up vote 10 down vote accepted

As to your first question:

There's a very nice example of volume rendering with medical images in the documentation (Applications section, item Volume Rendering) that seems to be applicable.

Mathematica graphics

Mathematica graphics

share|improve this answer
    
Thanks for the link. –  Jay May 30 '12 at 20:58
    
I'm wondering how to make this. –  Szabolcs May 30 '12 at 21:10
    
Alternative approach: I was able to use an example by "halirutan": filenames = FileNames[]; ch[i_] := ImageData[Import[filenames[[i]]], "Bit"]; ss = Table[ch[i], {i, 1, 20}]; ListContourPlot3D[ss, Mesh -> Automatic] –  Jay May 30 '12 at 21:29
    
@Szabolcs, here is my extremely slow volume rendered in mathematica, coordinates are slightly offset, gist.github.com/2840409. enjoy. –  s0rce May 31 '12 at 2:10
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.