[vtkusers] vtkImageReader and BrainWeb
Mathieu Malaterre
mathieu.malaterre at kitware.com
Wed May 12 13:52:31 EDT 2004
Marcelo,
Have a look at:
vtkImageReader::FileLowerLeftOn
vtkImageReader::FileLowerLeftOff
HTH
Mathieu
marcelo oliveira wrote:
> 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/
> _______________________________________________
> 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://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list