qsiprep.viz.utils module

Visualization utilities.

qsiprep.viz.utils.plot_acpc(acpc_registered_img, div_id, plot_params=None, order=('z', 'x', 'y'), cuts=None, estimate_brightness=False, label=None, compress='auto')[source]

Plot the results of an AC-PC transformation.

qsiprep.viz.utils.plot_denoise(lowb_nii, highb_nii, div_id, plot_params=None, highb_plot_params=None, order=('z', 'x', 'y'), cuts=None, estimate_brightness=False, label=None, lowb_contour=None, highb_contour=None, upper_label_suffix=': low-b', lower_label_suffix=': high-b', compress='auto', overlay=None, overlay_params=None)[source]

Plot the foreground and background views. Default order is: axial, coronal, sagittal

Updated version from sdcflows

qsiprep.viz.utils.slices_from_bbox(mask_data, cuts=3, padding=0)[source]

Finds equi-spaced cuts for presenting images