[Insight-users] Connecting itk image to vtk with Module_ITKVtkGlue
Kevin Keraudren
kevin.keraudren10 at imperial.ac.uk
Sat Mar 3 15:24:15 EST 2012
Hi,
I cannot help you with compiling ITK and ITKVtkGlue with Python.
But if your goal is to load data using ITK, apply simple filters and
visualize the result in VTK, then it will be easier to do:
SimpleITK (instead of ITK) -> numpy -> VTK
I attach a working volume rendering example to this email.
You can install SimpleITK with:
sudo easy_install SimpleITK
(see http://www.itk.org/Wiki/ITK/Release_4/SimpleITK for more info on
SimpleITK)
If you looked at some ITK-Python examples, you surely have realised
they're not really Python-friendly. SimpleITK is.
If you really want something like WrapITK, then you could try the
binaries from:
http://www.paulnovo.org/repository
Let me know if the script works for you. You might have to adapt the
transfer function depending on what is in your file.
Kind regards,
Kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SimpleITK_VTK_Example.py
Type: text/x-python
Size: 3139 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120303/f8b21cff/attachment.py>
More information about the Insight-users
mailing list