Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
fvtk volume doesn't handle affine (crashes notebook) #1161
When I try to use the fvtk volume function without an affine, it works... with an affine, however, I get the error that it needs scalar data to volume render, and the notebook crashes. See toy example, below.
ERROR: In ../Rendering/Core/vtkVolume.cxx, line 720
"The kernel appears to have died. It will restart automatically"
from dipy.viz import fvtk
import numpy as np
roi_actor = fvtk.volume(a, affine=np.eye(4), voxsz = np.array([1,1,1], float), info=1)