larmor#

Larmor: diffusion MRI processing tools.

AnisotropicRF

Response of a diffusion tensor with a mean kurtosis term.

DTIFit

Result of a DTI fit, as maps on the image grid (zero outside the fitted mask).

DTIModel

Diffusion tensor model: its settings, and fit to fit it to a DWI.

GradientTable

The diffusion weighting of each volume of a DWI, in the order of the volumes.

Grid

The voxel grid an object (Volume, Tractogram) lives on.

IsotropicRF

Isotropic response, exp(-b D), the same along every direction.

SDFit

Result of a spherical deconvolution fit.

SDModel

Spherical deconvolution of DWI data into FODs.

Surface

A triangle mesh in world coordinates, with named values per vertex.

Tractogram

A set of streamlines, stored as one flat array of points and their offsets.

Volume

Volume from an MRI acquisition.

create_brain_mask

Compute a brain mask from a b0 volume.

load_dwi

Loads a diffusion volume and its gradients.

load_surface

Reads a surface, and optionally files of values per vertex for it.

load_tractogram

Reads a tractogram, in the format given by the file's extension.

load_volume

Reads a volume, in the format given by the file's extension.

read_bvals_bvecs

Reads bvals and bvecs files into a gradient table in world coordinates.

save_surface

Writes a surface: GIfTI for a gii name, FreeSurfer for any other name.

save_tractogram

Writes a tractogram, in the format given by the file's extension.

save_volume

Writes a volume, in the format given by the file's extension.

write_bvals_bvecs

Writes a gradient table as bvals and bvecs files: one row, and 3 rows.

larmor.__version__#

The version of Larmor installed, such as “1.0.0”.