[vtkusers] How to display a 2D image??

Sergio Andres sergio at unizar.es
Tue Aug 31 10:14:52 EDT 2004


Hi all,

I just want to display a vtkImageData (2D image) in a render window,
so that the image has the size of the window.

I have been trying to do this using vtkImageViewer and vtkImageViewer2.
The firts one seems to ignore the spacing of the image,
since it displays the image as though the spacing is 1,1.

The second one displays the image smaller because of the reset of the 
camera.

How may I draw the image to take up all the window size..??

Thanks in advance.
Sergio




More information about the vtkusers mailing list