[vtkusers] How to Read raw volume file (*.vol) into vtk.

Lisa S. Avila lisa.avila at kitware.com
Fri Jul 13 17:17:25 EDT 2001


Hello,

You should be able to use vtkImageReader. You'll have to set the 
FileDimensionality to 3 to indicate that all your data is in one file.

Lisa


At 01:24 PM 7/9/2001, Juerg Tschirren wrote:

>I am experimenting with the same topic right now. It looks like
>vtkImageImport is your best bet if you are working with C++.
>
>   In case you work with Python then there is a script called
>vtkImageImportFromArray.py coming with VTK that can convert a
>NumericalPython array into a VTK image. All you have to do then is getting
>your raw data into a NumPy array first.
>
>   Let me know if you find a better solution.
>
>Juerg
>
>
>On Mon, 9 Jul 2001, Jianlong Zhou wrote:
>
> >
> > hi, Dear vtk users,
> >
> > I have a raw volume file( no file head and all slices in a single volume
> > file)( *.vol).
> >
> > I now want to read into vtk and rendering with vtk. How to read it into
> > vtk?
> >
> > and then how to process it?
> >
> > Thank you in advance.
> >
> > Best regards.
> >
> > jl
> >
> >
> > 
> ________________________________________________________________________________
> > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> >
> > _______________________________________________ This is the private VTK
> > discussion list. Please keep messages on-topic. Check the FAQ at: Follow
> > this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtkusers
> >
>
>
>_______________________________________________
>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