11

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]
  • 1
    I think 1st part of the question was answered here: http://mathematica.stackexchange.com/questions/6247/how-to-show-solid-bodies-using-volumetric-rendering/6252#6252 – Vitaliy Kaurov Jun 01 '12 at 18:53

1 Answers1

11

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

Sjoerd C. de Vries
  • 65,815
  • 14
  • 188
  • 323
  • 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] –  May 30 '12 at 21:29
  • @Szabolcs, here is my extremely slow volume rendered in mathematica, coordinates are slightly offset, https://gist.github.com/2840409. enjoy. – s0rce May 31 '12 at 02:10