[vtkusers] Loading 2D images from memory
David Gobbi
dgobbi at irus.rri.ca
Wed Jun 13 19:49:44 EDT 2001
On Wed, 13 Jun 2001, TJ Wilkinson wrote:
> I have had great success loading raw image data from files, but I am
> working with code where the images are in memory already in an array.
>
> If someone could point me in the right direction to load raw data in
> memory into some form readable by VTK, I would greatly appreciate it.
The vtkImageImport class takes care of the details, as shown in
the example vtk/imaging/examplesCxx/ImportExport.cxx. It is also
possible to load data from a Python string or a Tcl string, if you
are into scripting languages.
- David
More information about the vtkusers
mailing list