[vtkusers] vtk volume rendering

Crystal Li lxbosky at gmail.com
Sun Oct 28 13:49:10 EDT 2012


Hi all,

I want to do the volume rendering for nifti files (.nii)..
I use the following to read an .nii file:

from nifti import NiftiImage
data_set="/home-nfs/local/pythonGPUdata/test/KKI2009-01-DTI.nii"
nim = NiftiImage(data_set)
img_data=nim.data
img=vtkImageImportFromArray()
img.SetArray(img_data)


Is this the correct way to read nifti file in vtk?
When I run the render in this way, there is always a "segmentation fault"
while rendering....

Do anyone have the similar experience?

Any help is appreciated!!
Thank you very much!
Crystal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121028/1b75ef46/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtk_test1.py
Type: application/octet-stream
Size: 5198 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121028/1b75ef46/attachment.obj>


More information about the vtkusers mailing list