[vtkusers] How can I read 8-bits medical images?
Goodwin Lawlor
goodwin.lawlor at ucd.ie
Mon Nov 5 13:16:02 EST 2001
Use vtkImageReader with the SetDataScalarTypeToUnsignedChar flag set.
(eg) for a series of images ct.0, ct.1, ct.2 ... ct.99 with dim 256x256
vtkImageReader reader
reader SetFilePrefix "c:/data/ct."
reader SetDataScalarTypeToUnsignedChar
reader SetDataExtent 0 255 0 255 0 99
reader SetDataSpacing 1.5 1.5 1.0
reader SetHeaderSize 3000
reader SetDataMask 0x7fff
reader SetDataByteOrderToLittleEndian
HTH,
Goodwin
University College Dublin
----- Original Message -----
From: "Isabels Siqueira" <isabels at inf.ufrgs.br>
To: <vtkusers at public.kitware.com>
Sent: Monday, November 05, 2001 6:46 PM
Subject: [vtkusers] How can I read 8-bits medical images?
> Hi.
> I would like to know how can I read 8-bits medical images using VTK?
> Thanks
> Isabel
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list