# Construct 3D image from multiple 2D images

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?

slices={1,2,3,4,5};
ss = Map[ImageData, slices];
ListContourPlot3D[ss, Mesh -> None, Contours -> Automatic]

-
I think 1st part of the question was answered here: mathematica.stackexchange.com/questions/6247/… –  Vitaliy Kaurov Jun 1 '12 at 18:53

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.

-
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