# List of MRtrix3 commands

Lang |
Command |
Synopsis |
---|---|---|

Generate a mask image appropriate for seeding streamlines on the grey matter-white matter interface |
||

Generate an image for visualisation purposes from an ACT 5TT segmented anatomical image |
||

Thoroughly check that one or more images conform to the expected ACT five-tissue-type (5TT) format |
||

Manually set the partial volume fractions in an ACT five-tissue-type (5TT) image using mask images |
||

Generate a 5TT image suitable for ACT |
||

Obtain an estimate of fibre connectivity between two regions using AFD and streamlines tractography |
||

Estimate response function coefficients based on the DWI signal in single-fibre voxels |
||

Convert a set of amplitudes (defined along a set of corresponding directions) to their spherical harmonic representation |
||

Extract streamlines from a tractogram based on their assignment to parcellated nodes |
||

Perform basic operations on a connectome |
||

Connectome group-wise statistics at the edge level using non-parametric permutation testing |
||

Edit DICOM file in-place |
||

Output DICOM fields in human-readable format |
||

Invert the polarity of individual directions so as to optimise a unipolar electrostatic repulsion model |
||

Generate a set of uniformly distributed directions using a bipolar electrostatic repulsion model |
||

Splice / merge multiple sets of directions in such a way as to maintain near-optimality upon truncation |
||

Reorder a set of directions to ensure near-uniformity upon truncation |
||

Apply a rotation to a direction set |
||

Split a set of evenly distributed directions (as generated by dirgen) into approximately uniformly distributed subsets |
||

Report statistics on a direction set |
||

Calculate ADC and/or IVIM parameters. |
||

Estimate fibre orientation distributions from diffusion data using spherical deconvolution |
||

Generate a binary mask from DWI data |
||

Estimate response function(s) for spherical deconvolution |
||

Diffusion (kurtosis) tensor estimation |
||

Perform B1 field inhomogeneity correction for a DWI volume series |
||

Perform a combination of bias field correction, intensity normalisation, and mask derivation, for DWI data |
||

Concatenating multiple DWI series accounting for differential intensity scaling |
||

dMRI noise level estimation and denoising using Marchenko-Pastur PCA |
||

Extract diffusion-weighted volumes, b=0 volumes, or certain shells from a DWI dataset |
||

Perform diffusion image pre-processing using FSL’s eddy tool; including inhomogeneity distortion correction using FSL’s topup tool if possible |
||

Check the orientation of the diffusion gradient table |
||

Perform various forms of intensity normalisation of DWIs |
||

Apply an mrmath operation to each b-value shell in a DWI series |
||

Convert data in the fixel directory format into a 4D image of 3-vectors |
||

Convert a fixel-based sparse-data image into an spherical harmonic image |
||

Map fixel values to a track scalar file based on an input tractogram |
||

Convert a fixel-based sparse-data image into some form of scalar image |
||

Fixel-based analysis using connectivity-based fixel enhancement and non-parametric permutation testing |
||

Generate a fixel-fixel connectivity matrix |
||

Convert between the old format fixel image (.msf / .msh) and the new fixel directory format |
||

Obtain fixel-fixel correpondence between a subject fixel image and a template fixel mask |
||

Crop/remove fixels from sparse fixel image using a binary fixel mask |
||

Perform filtering operations on fixel-based data |
||

Reorient fixel directions |
||

Generate FOD-based DEC maps, with optional panchromatic sharpening and/or luminance/perception correction |
||

Perform segmentation of continuous Fibre Orientation Distributions (FODs) to produce discrete fixels |
||

Perform some arbitrary processing step for each of a set of inputs |
||

Convert a parcellated image (where values are node indices) into a colour image |
||

Generate meshes from a label image |
||

Convert a connectome node image from one lookup table to another |
||

In a FreeSurfer parcellation image, replace the sub-cortical grey matter structure delineations using FSL FIRST |
||

Compute statistics of parcels within a label image |
||

Create a glass brain from mask input |
||

Print out the locations of all non-zero voxels in a mask image |
||

Perform filtering operations on 3D / 4D mask images |
||

Convert a mesh surface to a partial volume estimation image |
||

Convert meshes between different formats, and apply transformations |
||

Apply filter operations to meshes |
||

Calculate the average (unbiased) coordinate space of all input images |
||

Apply generic voxel-wise mathematical operations to images |
||

Concatenate several images into one |
||

Determine the centre of mass / centre of gravity of an image |
||

Create bitwise checkerboard image |
||

Voxel-based analysis using permutation testing and threshold-free cluster enhancement |
||

Apply a colour map to an image |
||

Perform conversion between different file types and optionally extract a subset of the input image |
||

Remove Gibbs Ringing Artifacts |
||

Print out the values within an image |
||

Directly edit the intensities within an image from the command-line |
||

Perform filtering operations on 3D / 4D MR images |
||

Modify the grid of an image without interpolation (cropping or padding) or by regridding to an image grid with modified orientation, location and or resolution. The image content remains in place in real world coordinates. |
||

Modify the intensities of one image to match the histogram of another |
||

Generate a histogram of image intensities |
||

Display image header information, or extract specific information from the header |
||

Compute summary statistic on image intensities either across images, or along a specified axis of a single image |
||

Computes a dissimilarity metric between two images |
||

Register two images together using a symmetric rigid, affine or non-linear transformation model |
||

Compute images statistics |
||

Create bitwise image by thresholding image intensity |
||

Apply spatial transformations to an image |
||

Clean up residual temporary files & scratch directories from MRtrix3 commands |
||

The MRtrix image viewer |
||

Multi-tissue informed log-domain intensity normalisation |
||

Extract amplitudes from a peak directions image |
||

Convert peak directions image to a fixel directory |
||

Generates an unbiased group-average template from a series of images |
||

Calculate the mean response function from a set of text files |
||

Evaluate the amplitude of an image of spherical harmonic functions along specified directions |
||

Extract the peaks of a spherical harmonic function in each voxel |
||

Compute the total power of a spherical harmonics image |
||

Generate an appropriate response function from the image data for spherical deconvolution |
||

Examine the values in spherical harmonic images to estimate (and optionally change) the SH basis used |
||

Perform spherical convolution |
||

View spherical harmonics surface plots |
||

Generate a connectome matrix from a streamlines file and a node parcellation image |
||

Compute a fixel TDI map from a tractogram |
||

Convert between different track file formats |
||

Perform the Track-Weighted Dynamic Functional Connectivity (TW-dFC) method |
||

Perform various editing operations on track files |
||

Perform streamlines tractography |
||

Multi-Shell Multi-Tissue Global Tractography |
||

Print out information about a track file |
||

Map streamlines to an image, with various options for generating image contrast |
||

Resample each streamline in a track file to a new set of vertices |
||

Sample values of an associated image along tracks |
||

Filter a whole-brain fibre-tracking data set such that the streamline densities match the FOD lobe integrals |
||

Optimise per-streamline cross-section multipliers to match a whole-brain tractogram to fixel-wise fibre densities |
||

Calculate statistics on streamlines lengths |
||

Apply a spatial transformation to a tracks file |
||

Generate maps of tensor-derived parameters |
||

Perform calculations on linear transformation matrices |
||

Compose any number of linear transformations and/or warps into a single transformation |
||

Convert linear transformation matrices |
||

Divide corresponding values in track scalar files |
||

Print out information about a track scalar file |
||

Multiply corresponding values in track scalar files |
||

Gaussian filter a track scalar file |
||

Threshold and invert track scalar files |
||

Validate a track scalar file against the corresponding track data |
||

Statistical testing of vector data using non-parametric permutation testing |
||

Map the scalar value in each voxel to all fixels within that voxel |
||

Generate a surface mesh representation from a voxel image |
||

Compute fixel-wise or voxel-wise metrics from a 4D deformation field |
||

Convert between different representations of a non-linear warp |
||

Replaces voxels in a deformation field that point to a specific out of bounds location with nan,nan,nan |
||

Create an initial warp image, representing an identity transformation |
||

Invert a non-linear warp field |