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

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -