Voxel-based volume with statistical overlay¶

This notebook demonstrates the minimal usage of NiiVue with a two NIfTI volumes: a background anatmical image and a statistical overlay.

In [1]:
from ipyniivue import NiiVue, ShowRender
nv = NiiVue(
    back_color=(1, 1, 1, 1),
    show_3d_crosshair=True,
    is_colorbar=True,
    multiplanar_show_render=ShowRender.ALWAYS,
)

nv.load_volumes([
        {'path': '../images/mni152.nii.gz'},
        {'path': '../images/spmMotor.nii.gz',
             "colormap": "warm",
            "colormap_negative": "winter",
            "cal_min": 3,
            "cal_max": 6,
            "cal_min_neg": -6,
            "cal_max_neg": -3,
        }
    
    ])
nv.volumes[0].colorbar_visible = False
nv.opts.is_alpha_clip_dark = True
nv
Out[1]:
In [ ]:
 
In [ ]: