[vtkusers] ImageReader

jiafucang jiafucang at asisz.com
Wed Jan 26 22:21:31 EST 2005


Hi, Michael,

You may want to try vtkImageReader to read the whole image data, 
for example in Tcl,

vtkImageReader reader
reader SetDataExtent 0 347 0 409 0 809
reader SetDataSpacing 1.0 1.0 1.0 
reader SetFileName "wholeimage.raw"
reader SetFileDimensionality 3
reader SetDataScalarTypeToUnsignedChar
reader Update

HTH,
Fucang

-----Original Message-----
From: "Michael R. Ballinger" <mballing at andrew.cmu.edu>
To: vtkusers at vtk.org
Date: Wed, 26 Jan 2005 20:26:24 -0500 (EST)
Subject: [vtkusers] ImageReader

> Hi All,
> 
> I am very new to this and was wondering if somebody could give me some 
> pointers.
> 
> I have a very large raw file that consists of 810 images 348x410 
> resolution I know that each pixel is just one byte.  I am having
> trouble 
> figuring out how to read this file into vtk.  Could somebody please
> help 
> me out.  I have tried a number of the readers and was wondering if
> there 
> was one compatible with this type of multi-frame raw file.
> 
> -thanks for all your help
> Michael
> _______________________________________________
> 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