Hi all, <div><br></div><div>I want to do the volume rendering for nifti files (.nii)..</div><div>I use the following to read an .nii file:</div><div><br></div><div>from nifti import NiftiImage</div><div><div>data_set="/home-nfs/local/pythonGPUdata/test/KKI2009-01-DTI.nii"</div>
<div>nim = NiftiImage(data_set)</div><div>img_data=nim.data</div><div>img=vtkImageImportFromArray()</div><div>img.SetArray(img_data)</div><div><br></div></div><div><br></div><div>Is this the correct way to read nifti file in vtk?</div>
<div>When I run the render in this way, there is always a "segmentation fault" while rendering....</div><div><br></div><div>Do anyone have the similar experience?</div><div><br></div><div>Any help is appreciated!!</div>
<div>Thank you very much!</div><div>Crystal</div>