[vtkusers] How to read a tiff file into volume

James Carroll jim at microbrightfield.com
Wed Jul 6 16:10:33 EDT 2005


Using the SetFilePrefix method is necessary, VTK can't read tiff volumes
(the ITK does read tiff volumes, so some people will read the multi-tiff
into ITK, and then convert to VTK.)

If you need to separate out the individual levels of your stack
you can use the tiffsplit utility from libtiff.  

  http://www.remotesensing.org/libtiff/v3.7.2.html
(the link might just have the source, and not binaries...)

-Jim


-----Original Message-----
From: vtkusers-bounces+jim=microbrightfield.com at vtk.org
[mailto:vtkusers-bounces+jim=microbrightfield.com at vtk.org] On Behalf Of
Amy Squillacote
Sent: Wednesday, July 06, 2005 1:23 PM
To: vtkusers at vtk.org
Subject: Re: [vtkusers] How to read a tiff file into volume

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

_______________________________________________
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