unravel.viz

Created on Sat Apr 8 20:41:36 2023

@author: DELINTE Nicolas

Functions

compute_alpha_surface(vf[, method, ...])

Computes the mesh for the alpha coefficient surface based on the vectors of vf.

convert_to_gif(array, output_folder[, ...])

Creates a GIF from a 3D volume.

create_gif_pyvista_plotter(plotter, file_path)

Create a 360° rotation GIF of the current 3D view. Example usage:

create_streamline_propagation_gif(trk, ...)

Create a GIF of neural activity propagating through all streamlines.

export_alpha_surface(vf, output_path[, ...])

Computes and exports the mesh for the alpha coefficient surface based on the vectors of vList.

grayscale_to_rgb(array)

Reapeats a 3D array three times to create a 3D rgb image.

overlap_volumes(vol_list[, rgb, order])

Overlaps multiple volumes, zero is taken as transparent.

plot_alpha_surface_matplotlib(vf[, method, ...])

Computes and plots the mesh for the alpha coefficient surface based on the vectors of vf.

plot_alpha_surface_pyvista(vf[, method, ...])

Computes and plots the mesh for the alpha coefficient surface based on the vectors of vf.

plot_metric_along_trajectory(mean, dev[, ...])

Plots the output of unravel.analysis.get_metric_along_trajectory.

plot_nodes_and_surfaces(point_array[, ...])

Visualize output of stream.extract_nodes

plot_roi_sections(roi[, voxel, background, ...])

plot_trk(trk_file[, scalar, color_map, ...])

3D render for .trk files.