[vtkusers] Reading Vector data from images

Uwe Köhler U.Koehler at gmx.de
Mon Aug 19 04:57:17 EDT 2002


Hi folks,

I am trying to read velocity data created on an MRI scanner and I am hoping 
that you can give me some help to do thid efficiently. The data is acquired
in
a 3D block and is available as a set of individual slices. I do read these
with

package require vtk

set venc 300
set rows 256
set columns 256
set slices 79
set niceslice 25

# Magnitude data (move to top left)
vtkImageReader readerMag
#readerMag DebugOn
[readerMag GetOutput] ReleaseDataFlagOff
readerMag SetDataByteOrderToLittleEndian
readerMag SetDataScalarTypeToShort
readerMag SetDataExtent 0 [expr $columns-1] 0 [expr $rows-1] 0 [expr
$slices-1]
readerMag SetFilePrefix "D:/***/Slice"
readerMag SetFilePattern "%s%03dMag.bin"

...

# Velocity x
vtkImageReader readerVelX
#readerVelX DebugOn
[readerVelX GetOutput] ReleaseDataFlagOff
readerVelX SetDataByteOrderToLittleEndian
readerVelX SetDataScalarTypeToShort
readerVelX SetDataExtent 0 [expr $columns-1] 0 [expr $rows-1] 0 [expr
$slices-1]
readerVelX SetFilePrefix "D:/***/Slice"
readerVelX SetFilePattern "%s%03dVel_x.bin"
readerVelX Update

...

I do need to combine these for sets of magnitude and velocity component
images
to one set with scalar and vector data. I have not yet come up with an 
efficient method to achive this.

Has anyone any ideas or even done this before?

Many thanks in advance

Uwe

-- 
 |                                                                 |
-+-----------------------------------------------------------------+-
 |  Dr. Uwe Köhler              Merellaan 17                       |
 |                              NL - 5613 AK Eindhoven             |
 |          ////                The Netherlands                    |
 |         (@ @)                Phone: +31 61 089 2559             |
-+-----oOO--(_)--OOo-----------------------------------------------+-
 | <URL:http://www.ed.ac.uk/~ukoehler>   <mailto:U.Koehler at gmx.de> 
|


GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net




More information about the vtkusers mailing list