License New BSD license
Lines 176
Keywords
MRI (3) Ray Casting (2) Volume Rendering (9) VTK (6)
Included in these Libraries
Permissions
Owner: Stou S.
Viewable by Everyone
Editable by All Siafoo Users
Hide
Easily highlight source code for your blog with our Syntax Highlighter. Join Siafoo Now or Learn More

Volume Rendering MRI data using VTK Atom Feed 0

In Brief A simple VTK based viewer for Volume Data (using vtkVolumeRayCastMapper). This is equivalent to Volume Rendering MRI data using PyOpenGL but the image quality seems worse... probably because of some misconfiguration.... more

A simple VTK based viewer for Volume Data (using vtkVolumeRayCastMapper). This is equivalent to Volume Rendering MRI data using PyOpenGL but the image quality seems worse... probably because of some misconfiguration.

To run, just pass the .hdr file (or NIfTI file) on the command line like:

python VolRenderVTK.py my_data.hdr

Pressing the l key will toggle lighting on/off

Warning

You will need wxPython Transfer Function Widget, Load NumPy Array into a VTK image and probably Double Buffered wxVTKRenderWindowInteractor along with some NIfTI or hdr/dat data.

An example:

http://www.siafoo.net/image/166?w=300