[vtkusers] Combining 2D jpeg files into a 3D image

Elaine Olson elaine.olson at gmail.com
Fri Oct 7 19:51:40 EDT 2011


Hi,
I'm new to VTK. I'm wondering if it would be a good tool for what I want to do.

I want to read in a series of 2D jpeg (or could be tiff, bmp, etc if
necessary) images, and create a 3D image from the slices. I found some
examples that do this sort of thing, and they do what I want to do,
except for one thing: the colors. I want the colors in the 3D image to
match the colors in the jpeg files. The examples I've found produce
either grayscale images, or the color schemes produced by
vtkColorTransferFunction. So it looks like the colors in the 3D volume
are based on the intensity only? Is there any way to get the actual
rgb values from the jpegs into the 3D image?

I hope this makes sense! I've only been working on this a few days.
Thanks for any clues on how to proceed!



More information about the vtkusers mailing list