[vtkusers] Zooming the vtkImageViewer

Brian Alexander Todd bat5 at po.cwru.edu
Thu Jun 8 10:18:39 EDT 2000


Erik,

Another possibility is to texture your image onto
a plane and use a vtkRenderWindow instead of 
vtkImageWindow.  Then zooming is all taken care of
for you.

Brian

At 08:58 AM 6/8/00 +0100, Matt Clarkson wrote:
>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
>
>_______________________________________________
>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
>
>





More information about the vtkusers mailing list