3D visualization of activation maps using Mayavi
Make a Mayavi source defined by a 3D array and an affine, for wich the voxel of the 3D array are mapped by the affine.
Parameters: | data: 3D ndarray :
affine: (4 x 4) ndarray :
scale: float, optional :
name: string, optional :
reverse_x: boolean, optional :
|
---|
Notes
The affine should be diagonal.
Capture a screeshot of the Mayavi figure and display it in the matplotlib axes.
3D anatomical display
Parameters: | skull_percentile : float, optional
wm_percentile : float, optional
|
---|
Plot a 3D volume rendering view of the activation, with an outline of the brain.
Parameters: | map : 3D ndarray
affine : 4x4 ndarray
cut_coords: 3-tuple of floats, optional :
anat : 3D ndarray, optional
anat_affine : 4x4 ndarray, optional
threshold : float, optional
offscreen: boolean, optional :
vmin : float, optional
vmax : float, optional
cmap : a callable, or a pylab colormap
|
---|
Notes
If you are using a VTK version below 5.2, there is no way to avoid opening a window during the rendering under Linux. This is necessary to use the graphics card for the rendering. You must maintain this window on top of others and on the screen.