[vtkusers] vtkusers] VTK file: binary to ASCII conversion?

Mathieu Malaterre mathieu.malaterre at kitware.com
Wed Sep 1 18:00:52 EDT 2004


p3rdigão,

	In python you can use:

import vtk
r = vtkDataSetReader()
r.SetFileName('foo.vtk')

w = vtkDataSetWriter()
w.SetInput( r.GetOutput() )
w.SetFileName('foo-ascii.vtk')
w.Write()

HTH
Mathieu

p3rdigao wrote:
>  
> 
>  
> 
> Anyone knows the answer to this question?
> 
> "
> 
> Hello,
>  
> Has anyone found a way to convert binary VTK files generated by Slicer to ASCII files?  
>  
>  
> Sincerely,
>  
> -Robert Malinowski
> 
> "
> 
>  
> 
>  
> 
> I have the same question..
> 
>  
> 
> Regards 
> 
>  
> 
> p3rdigão
> 
> _______________________________________________
> 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