vtkImageReader

David Gobbi dgobbi at irus.rri.on.ca
Fri Oct 29 13:58:56 EDT 1999


Hi Ron,

The vtkImageReader is a full-featured reader, nearly all of the 
examples in vtk/imaging/examplesTcl use it.  It supports streaming
(it will only read the necessary portion of the data from disk),
it can support any data type (byte, short, int, float, etc), 
multi-component data, etc. 

It will read any file consisting of a header + raw data, though
it ignores the header (of course).  

The vtkImageReader can be used as a drop-in replacement for the
vtkVolume16Reader, though it has more options to be set.

 - David

--David Gobbi, MSc                    dgobbi at irus.rri.on.ca
  Advanced Imaging Research Group
  Robarts Research Institute, University of Western Ontario

On Fri, 29 Oct 1999, Ron Inbar wrote:

> I need to read a very large dataset from raw files (no headers).
> vtkVolume16Reader does the job but takes about 10 minutes and fills up all
> my RAM.  I understand that vtkVolume16Reader doesn't support streaming, so I
> tried to replace it by a vtkImageReader, but I didn't seem to be getting any
> data (all the scalars were 0xCDCD).  It occured to me that vtkImageReader is
> not supposed to be used directly, but just to serve as an abstract base
> class for vtkBMPReader, vtkPNMReader, vtkTIFFReader, etc.  Am I right in
> this assumption?  Is there another way to read raw files using streaming?
> 
> Thanks in advance,
> 
> Ron
> 
> 
> 
> 
> -----------------------------------------------------------------------------
> This is the private VTK discussion list.  Please keep messages on-topic.
> Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
> To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
> <majordomo at gsao.med.ge.com>.  For help, send message body containing
> "info vtkusers" to the same address.     Live long and prosper.
> -----------------------------------------------------------------------------
> 



-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------




More information about the vtkusers mailing list