SHARE
TWEET

Untitled

a guest Mar 20th, 2019 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import vtk
  2.  
  3. reader = vtk.vtkXMLImageDataReader()
  4. reader.SetFileName("test.vti")
  5. reader.Update()
  6. image = reader.GetOutput()
  7.  
  8. writer = vtk.vtkJPEGWriter()
  9. writer.SetInputData(image)
  10. writer.SetFileName("test.jpg")
  11. writer.Write()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top