[vtkusers] Zooming the vtkImageViewer

Matt Clarkson m.clarkson at umds.ac.uk
Thu Jun 8 03:58:21 EDT 2000


You do this by connecting the volume
to a vtkImageReslice filter, and extracting
a 2D slice and connecting this to the viewer.
You set the vtkImageReslice filter
to extract a 2D image, ie. Set the extent to
0 255 0 255 0 0

The vtkImageReslice can then be adjusted to give
different fields of view. Effectively you are resampling
a 2D image each time rather than a 3D volume

I didnt know that the image viewer had a camera
as such.

Anyway, hope this helps

Matt


Erik Sobel wrote:
> 
> Does anyone know how to zoom an image in a vtkImageViewer (without
> resampling the volume - since this messes up other parts of my
> pipeline)?   Is it possible to just grab the camera used by the
> vtkImageViewer and zoom it?
> 
> Thanks,
> Erik
> 
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> vtkusers mailing list
> vtkusers at public.kitware.com
> http://public.kitware.com/mailman/listinfo/vtkusers

-- 
Computational Imaging Science Group                
Radiological Sciences,                                  
Guy's Hospital                           
London Bridge                       
London                                                                      
SE1
9RT                                                                     
Tel: +44 (0)20 7955 2380       
Fax: +44 (0)20 7955 4532  
E-mail: m.clarkson at umds.ac.uk         
WWW: http://carmen.umds.ac.uk/m.clarkson




More information about the vtkusers mailing list