Skip to content

Commit

Permalink
Merge pull request #25 from hMRI-group/putUNICORToptionBack
Browse files Browse the repository at this point in the history
Put UNICORT option back
Went through the basic test with no errors.
  • Loading branch information
DerOrfa committed May 4, 2021
2 parents 2a95aee + 0909f78 commit 4bdc600
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tbx_scfg_hmri_B1_menu.m
@@ -1,4 +1,4 @@
function b1_type = tbx_scfg_hmri_B1_menu
function [b1_type,b1parameters] = tbx_scfg_hmri_B1_menu
% Configuration file for the "histological MRI" (hMRI) toolbox
% Previously named "Voxel-Based Quantification" (VBQ)
% -> Dealing with menu options for the creation of B1 maps
Expand Down
41 changes: 40 additions & 1 deletion tbx_scfg_hmri_create.m
Expand Up @@ -78,7 +78,46 @@
% ---------------------------------------------------------------------
% menu b1_type
% ---------------------------------------------------------------------
b1_type = tbx_scfg_hmri_B1_menu;
[b1_type,b1parameters] = tbx_scfg_hmri_B1_menu;

% ---------------------------------------------------------------------
% New B1 mapping methods should be added to tbx_scfg_hmri_B1_menu.m
% Only B1 mapping methods which cannot be run independently of the rest of
% the hMRI toolbox should be added here!
% ---------------------------------------------------------------------

% ---------------------------------------------------------------------
% UNICORT B1 bias correction
% ---------------------------------------------------------------------
b1_input_UNICORT = cfg_branch;
b1_input_UNICORT.tag = 'UNICORT';
b1_input_UNICORT.name = 'UNICORT';
b1_input_UNICORT.help = {'UNICORT will be applied for B1 bias correction.'
'No B1 input data required.'
['Customized processing parameters may be introduced by loading ' ...
'customized defaults from a selected [hmri_b1_local_defaults_*.m] file.']};
b1_input_UNICORT.val = {b1parameters};
% ---------------------------------------------------------------------
% No B1 bias correction
% ---------------------------------------------------------------------
b1_input_noB1 = cfg_entry;
b1_input_noB1.tag = 'no_B1_correction';
b1_input_noB1.name = 'no B1 correction';
b1_input_noB1.help = {'No B1 bias correction will be applied.'
['NOTE: when no B1 map is available, UNICORT might be a better ' ...
'solution than no B1 bias correction at all.']};
b1_input_noB1.strtype = 's';
b1_input_noB1.num = [1 Inf];
b1_input_noB1.val = {'noB1'};
% ---------------------------------------------------------------------
% Add extra B1 mapping methods which cannot be run independently of the
% MPM map creation to the menu
% ---------------------------------------------------------------------
b1_type.values = [b1_type.values {b1_input_UNICORT, b1_input_noB1}];
b1_type.help={b1_type.help{1},[' - UNICORT: Use this option when B1 maps not available. ' ...
'Bias field estimation and correction will be performed ' ...
'using the approach described in [Weiskopf et al., NeuroImage 2011; 54:2116-2124]. ' ...
'WARNING: the correction only applies to R1 maps.']};

% ---------------------------------------------------------------------
% Input images for RF sensitivity - RF sensitivity maps for MTw images
Expand Down

0 comments on commit 4bdc600

Please sign in to comment.