[vtkusers] How to read a tiff file into volume

Kim Chuan Lim lim.kim.chuan at gmail.com
Thu Jul 7 04:21:18 EDT 2005


Hi ya,

Thanks Jim and Amy, your help is useful.
Thanks a lot.

Best Regards,
Kim Chuan.


On 7/6/05, vtkusers-request at vtk.org <vtkusers-request at vtk.org> wrote:
> Send vtkusers mailing list submissions to
>         vtkusers at vtk.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://www.vtk.org/mailman/listinfo/vtkusers
> or, via email, send a message with subject or body 'help' to
>         vtkusers-request at vtk.org
> 
> You can reach the person managing the list at
>         vtkusers-owner at vtk.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of vtkusers digest..."
> 
> 
> Today's Topics:
> 
>    1. How to read a tiff file into volume (Kim Chuan Lim)
>    2. Re: How to read a tiff file into volume (Amy Squillacote)
>    3. About 'callback function' in vtk UI programming (Leon Chen)
>    4. render a JPEG image and position it in the        vtkRenderWindow
>       (Renaud Isabelle)
>    5. volume vizualization with VTK (Adam Kubach)
>    6. vtkFixedPointVolumeRayCastMapper question (Randall Hand)
>    7. RE: How to read a tiff file into volume (James Carroll)
>    8. how to display points and labels on 2D images (chang yuan)
>    9. Re: Mean curvature (Prathap Nair)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Wed, 6 Jul 2005 18:11:24 +0100
> From: Kim Chuan Lim <lim.kim.chuan at gmail.com>
> Subject: [vtkusers] How to read a tiff file into volume
> To: vtkusers at vtk.org
> Message-ID: <e325d11050706101158947def at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> 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.
> 
> Message: 7
> Date: Wed, 6 Jul 2005 16:10:33 -0400
> From: "James Carroll" <jim at microbrightfield.com>
> Subject: RE: [vtkusers] How to read a tiff file into volume
> To: "Amy Squillacote" <amy.squillacote at kitware.com>
> Cc: vtkusers at vtk.org
> Message-ID:
>         <5EA4B2EDD4BA8B4C84BE11298F81ADC4632C6F at exchange.microbrightfield.com>
> Content-Type: text/plain;       charset="us-ascii"
> 
> 
> 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
>



More information about the vtkusers mailing list