[vtkusers] How to read a tiff file into volume

Kim Chuan Lim lim.kim.chuan at gmail.com
Wed Jul 6 13:11:24 EDT 2005

Hi ya,

i use vtkTIFFReader to read a stacked tiff format file like this

vtkTIFFReader r
r SetFileName "$VTK_DATA_ROOT/2.tif"
r Update

scan [[r GetOutput] GetWholeExtent] "%d %d %d %d %d %d" \
        xMin xMax yMin yMax zMin zMax

puts "xMin= $xMin , xMax = $xMax, yMin = $yMin , zMin = $zMin , zMax = $zMax"

The return values are all ZERO except xMax is equal to some value..

May i know how can i read a stacked tiff format file into volume?

Thanks in advance,

Kim Chuan.

More information about the vtkusers mailing list