[vtkusers] Re: vtkusers digest, Vol 1 #886 - 13 msgs

David Pont david_pont at hotmail.com
Tue Mar 19 16:42:54 EST 2002


Arsene,

If you really want to see all slices at once you could use  vtkImageReslice 
and vtkImageBlend to stick them all together into one large image.

  Dave Pont

>From: Kevin Teich <kteich at cortechs.net>
>To: <vtkusers at public.kitware.com>
>CC: Arsene ELLA <ella at pet.mpin-koeln.mpg.de>
>Subject: [vtkusers] Re: vtkusers digest, Vol 1 #886 - 13 msgs
>Date: Tue, 19 Mar 2002 10:08:33 -0500 (EST)
>
>[Arsene ELLA]
> > Having a 3D image, how can I do to display all slices in the Z direction
> > in the same window?
>
>Take a look at vtkImageReslice. Here's how you might set it up:
>
>vtkImageReslice volReslice
>volReslice SetInput [volumeReader GetOutput]
>volReslice SetOutputOrigin 0 0 0
>volReslice SetOutputSpacing 1 1 1
>volReslice SetOutputExtent \
>     0 [expr $gWindowSize - 1] \
>     0 [expr $gWindowSize - 1] \
>     0 [expr $gWindowSize - 1]
>volReslice SetResliceAxesDirectionCosines \
>     0 0 1 \
>     0 1 0 \
>     1 0 0
>volReslice InterpolateOn
>volReslice SetOutputDimensionality 3
>
>SetResliceAxesDirectionConsines sets the direction in which the reslicer
>reslices the volume. Then connect it to an image viewer:
>
>imageViewer SetInput [volReslice GetOutput]
>imageViewer SetZSlice 128
>imageViewer SetColorWindow 200
>imageViewer SetColorLevel 100
>
>You can have a slider call:
>
>imageViewer SetZSlice $newSlice
>
>to change the slice interactively.
>
>--
>Kevin Teich
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers




_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx




More information about the vtkusers mailing list