[vtkusers] Extracting a Slice from a volume in different orientation
Amy Henderson
amy.henderson at kitware.com
Wed Jul 17 09:05:34 EDT 2002
At 06:21 PM 7/17/2002 +0530, cspl wrote:
>Dear Friends,
>
>How to extract an Image from a volume in orientations
>sagital(height),coronal(volwidth),transverse(depth). Is there any suitable
>class or method in VTK.
>
>Thanking you,
>
>Regards,
>Ramakrishna
Try using vtkImageClip. Use the SetOutputWholeExtent method that takes 6
parameters (min and max in each of X, Y, and Z directions). To extract a
slice in a particular direction, set the min and max values for that
dimension to be the same value (the slice number you want). For example,
if your data has dimensions 128 x 128 x 30, and you want to extract slice
50 in X, call SetOutputWholeExtent(50, 50, 0, 127, 0, 29).
- Amy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020717/a2ec44d3/attachment.htm>
More information about the vtkusers
mailing list