[vtkusers] vtkimagewriter

annelaure al_didier at yahoo.fr
Fri Sep 28 03:57:04 EDT 2007


Hi,
I have used a threshold in order to segment my scan. I'd like to write this
result in a raw format with vtkImageWriter. I use Python and I don't find
anywhere the syntax I should use. I have tried a lot of syntax but it didn't
function. 

vtksaveint = vtkImageWriter()
vtksaveint.SetFileName("myfuturfile.raw")
vtksaveint.SetFileDimensionality(3)
vtksaveint.SetInput(mysegmentedimage.GetOutput ()) :# error : my segmented
image has no attribute #GetOutput
vtksaveint.Write()

I'm a new user of vtk and I have a lot of difficulties to understand the
mechanism.

Thank you so much,

Anne-Laure
-- 
View this message in context: http://www.nabble.com/vtkimagewriter-tf4533000.html#a12936270
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list