python - Importing VTK Image Into Mayavi -
i'm having trouble importing image read through vtk mayavi pipeline. use mayavi volume rendering tools render vtk image, can't figure out how feed image mayavi. able read image without problem:
from tvtk.api import tvtk reader = tvtk.metaimagereader() reader.file_name = "image.mhd" reader.update()
but can't figure out how output reader mayavi. i'd use data image input mayavi volume renderer, in this example, haven't been able raw data vtk image , pipe through mayavi.
Comments
Post a Comment