[vtkusers] Creating a 3DImageData from slices

Amy Squillacote ahs at cfdrc.com
Thu May 22 11:08:00 EDT 2008


Hi Romu,

Are the slices already loaded in VTK (i.e., multiple 2D vtkImageData 
objects), or are you reading the slices from files?

If they're already 2D vtkImageData objects, take a look at 
vtkImageAppend 
(http://www.vtk.org/doc/nightly/html/classvtkImageAppend.html). If you 
have X-Y slices, then the "append axis" should be the Z axis.

If you're reading the slices from files, subclasses of vtkImageReader2 
(http://www.vtk.org/doc/nightly/html/classvtkImageReader2.html) will 
handle this for you. You can pass in either a list of file names or a 
file pattern to tell the reader how to get the data files.

- Amy

Romuald BERTRAND wrote:
>
> Hi all,
>
> Someone know how creating a 3DImageData from 2D slices?
> Thanks for answers,
>
> Romu
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>   

-- 
Amy Squillacote                    Phone: (256) 726-4839
Computer Scientist                 Fax: (256) 726-4806
CFD Research Corporation           Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL  35805





More information about the vtkusers mailing list