[vtkusers] Re: How to get 2D image slices from 3D vtk image data

Alberto García Consuegra algarcon at gmail.com
Mon Sep 17 04:26:06 EDT 2007


 Hi Jiangshan,
If you want to get some slices from a data volume (for example imageData),
you can use vtkExtractVOI.
First create extractVOI object
Second set the input data (imageData)
Third set the region you want to extract using selectVOI method
Fourth call update method of extractVOI object
Finally getOutput returns the image in a imageData object.




Subject: [vtkusers] How to get 2D image slices from 3D vtk image data
> To: vtkusers at vtk.org
> Message-ID:
>        <1809d8840709140300s60a06262leac787c3b6816353 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Dear all,
>
> I have a vtkImageData in 3d. how to get every 2d sliences? for example
> along z axis.
>
>
>
>
>
>
>
>
>
>
> --
> Best wishes,
> Jiangshan
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070917/ba67e5aa/attachment.htm>


More information about the vtkusers mailing list