[vtkusers] vtkImageReader and BrainWeb
marcelo oliveira
oliveira_mc at yahoo.com.br
Wed May 12 13:45:50 EDT 2004
Hi user´s
I downloaded a raw data from
http://www.bic.mni.mcgill.ca/cgi/brainweb1
with this info:
BrainWeb download: T1 ICBM normal 1mm pn0 rf0
Modality=T1, Protocol=ICBM, Phantom_name=normal,
Slice_thickness=1mm, Noise=0%, INU=0%
MINC volume info:
image: signed__ short 0 to 4095
image dimensions: zspace yspace xspace
dimension name length step start
zspace 181 1 -72
yspace 217 1 -126
xspace 181 1 -90
and choose FileFormat: raw byte (unsigned)
and Now i want to visualize this volume:
vtkImageReader *v16R = vtkImageReader::New();
v16R -> SetDataScalarTypeToUnsignedChar( );
v16R -> SetDataByteOrderToLittleEndian( );
v16R -> SetFileDimensionality( 3 );
v16R -> SetHeaderSize ( 0 );
v16R -> SetDataExtent( 0, 181, 0, 217, 0, 181 );
v16R -> SetDataOrigin( -90, -126, -72);
v16R -> SetDataSpacing ( 1, 1, 1 );
v16R -> SetFilePattern( 'teste.raw' );
v16R -> SetFilePrefix( 'teste.raw' );
v16R -> SetDataMask( 0x7fff );
v16R -> UpdateWholeExtent( );
I´m using VTK 4.2 and Borland C++ 5.0 on XP.
The images appers but in a wrong way !!!
How can solve this ???
thank´s a lot for your hints and time !!!!!
______________________________________________________________________
Yahoo! Messenger - Fale com seus amigos online. Instale agora!
http://br.download.yahoo.com/messenger/
More information about the vtkusers
mailing list