Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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)

ss = Map[ImageData, slices];
ListContourPlot3D[ss, Mesh -> None, Contours -> Automatic]
share|improve this question
I think 1st part of the question was answered here:… – Vitaliy Kaurov Jun 1 '12 at 18:53
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. – mathew 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] – mathew May 30 '12 at 21:29
@Szabolcs, here is my extremely slow volume rendered in mathematica, coordinates are slightly offset, enjoy. – s0rce May 31 '12 at 2:10

Your Answer


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.