Skip to content

Convert mrVista ROIs into mrDiffusion ROIs

Rosemary Le edited this page Aug 12, 2016 · 3 revisions

Functionally-defined ROIs are often used in diffusion analyses.

See example code below for transforming mrVista ROIs into mrDiffusion ROIs.


% Path to the dt6 file
dt6Path = '/pathToDiffusionData/dt6.mat';

% Path to anatomy file
t1Path = '/pathToAnatomyData/t1.nii.gz';

% Cell array of mrVista roi matfile paths
roiList = {
   '/pathToAnatomyData/ROIs/LV1.mat'
   '/pathToAnatomyData/ROIs/LV2v.mat'
};

% Where to save the ROIs
dirSaveRois = '/pathToDiffusionData/ROIs/';

%% Do it
dtiXformMrVistaVolROIs(dt6Path, roiList, t1Path, dirSaveRois)

Clone this wiki locally