qMRinfo('b1_afi'); % Describe the model
Model = b1_afi;
The current
Model
is an instance ofb1_afi
class.
You can manually download the sample data for b1_afi
by clicking here.
dataDir = downloadData(Model,pwd);
Protocol is set according to the example data
% |- b1_afi object needs 1 protocol field(s) to be assigned: % |- Sequence
nomFA = 60;
TR1 = 20;
TR2 = 100;
Model.Prot.Sequence.Mat = [ nomFA TR1 TR2];
%%
% AFIData1.nii.gz contains [88 128 32] data.
data.AFIData1=double(load_nii_data('b1_afi_data/AFIData1.nii.gz'));
% AFIData2.nii.gz contains [88 128 32] data.
data.AFIData2=double(load_nii_data('b1_afi_data/AFIData2.nii.gz'));
This section will fit data.
FitResults = FitData(data,Model,0);
- Output map will be displayed.
- If available, a graph will be displayed to show fitting in a voxel.
qMRshowOutput(FitResults,data,Model);
- qMR maps are saved in NIFTI and in a structure
FitResults.mat
that can be loaded in qMRLab graphical user interface.- Model object stores all the options and protocol
- These objects can be easily shared or be used for simulation.
FitResultsSave_nii(FitResults, 'b1_afi_data/AFIData1.nii.gz');