[vtkusers] 2D-Image size

"Siebert, Frank-André" siebert at onco.uni-kiel.de
Fri Jan 25 08:22:16 EST 2002


Hello, 

I have got a beginners question about 2D-Images.
How can I determine the height und width of my 2D-image?
Nornally the image is larger than my canvas and I wrote a routine to 
pan an scale the image.
But I have no idea where I can obtain informations about the image size
which varies with the transformations. 



Maybe somebody can give me a hint


Bye

Frank-André Siebert





        vtkTIFFReader reader
        reader SetFileName $file

        vtkTransform transform
        transform Scale 1 1 1
         
        vtkImageReslice reslice
        reslice SetInput [reader GetOutput]
        reslice SetResliceTransform transform
        reslice InterpolateOn

        vtkImageData data
        data SetInput [reslice GetOutput]

        vtkImageViewer viewer
        viewer SetInput [reslice GetOutput]
        viewer SetColorWindow 256
        viewer SetColorLevel 127.5
        [viewer GetImageWindow] DoubleBufferOn

        vtkTkImageViewerWidget .top.f1.r1 -width $imageWidth -height
$imageHeight -iv viewer









More information about the vtkusers mailing list