[vtkusers] Read *.raw file ???
Jeremy Winston
winston at cat.rpi.edu
Thu Feb 6 13:35:02 EST 2003
marisa aurelio wrote:
> I have an image, image.raw, and I need to see the result. With what program
> can I do that ??? Is there a way to read it with vtk, for example, translate
> it to jpg ???
Marisa,
You can do it in vtk[1], but if you really only have one such image, you
can use a free tool like Irfanview (http://www.irfanview.com/) to convert it
to BMP or JPEG, and use vtk's vtkBMPReader or vtkJPEGReader to read it.
In either case, you'll need to know the dimensions of the image.
-Jeremy
[1] See for example, Examples\ImageProcessing\Tcl\Histogram.tcl :
...
vtkImageReader reader
reader SetDataByteOrderToLittleEndian
reader SetDataExtent 0 63 0 63 1 93
reader SetFilePrefix "$VTK_DATA_ROOT/Data/headsq/quarter"
reader SetDataMask 0x7fff
...
More information about the vtkusers
mailing list