Convert mrVista ROIs into mrDiffusion ROIs - vistalab/vistasoft GitHub Wiki
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)