dMRI-Lab 1.0
|
Functions | |
function | spectrum2colorcode (in u1file, in l1file, in l2file, in l3file, in varargoutfile, in varargin) |
function spectrum2colorcode | ( | in | u1file, |
in | l1file, | ||
in | l2file, | ||
in | l3file, | ||
in | varargoutfile, | ||
in | varargin ) |
Computes the standard color-code representation for diffusion tensor data based on their spectra as computed by the dti2spectrum function. All mandatory inputs u1, l1, l2, and l3 are returnned by dti2spectrum.
u1file | The eigenvector associated to the largest eigenvalue, l1. |
l1file | The largest eigenvalue. |
l2file | The file to save the second largest eigenvalue. |
l3file | The file to save the smallest eigenvalue. |
varargoutfile | A string specifying the file to save the stacked RGB (xyz) channels weigthed by the FA, in the range [0,1]. |
varargin | Optional arguments passed as -name value pairs |
>> [u1,~,~,l1,l2,l3] = dti2spectrum( tensor, 'mask', mask ); >> RGB = spectrum2colorcode( u1, l1, l2, l3, 'mask', mask); >> slice = 17; >> IMG = squeeze(RGB(:,:,slice,:)); >> imshow(IMG);
Mandatory Inputs:
Optional Arguments
Example: