[vtkusers] How to read a tiff file into volume
Amy Squillacote
amy.squillacote at kitware.com
Wed Jul 6 13:22:52 EDT 2005
If you have a series of tiff tiles, then use the SetFilePrefix method of
vtkImageReader2 (superclass of vtkTIFFReader) instead of SetFileName.
- Amy
At 01:11 PM 7/6/2005, Kim Chuan Lim wrote:
>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.
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
>http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list