% This file is generated by SEPIA version: v1.2.2.2 % add general Path sepia_addpath; % Input/Output filenames input = struct(); input(1).name = '\\10.17.164.42\admin\QSM\misure\phantom_24feb23\6_swi_gre_6_te5\605_QSM_FFE_3D_1iso_ME6_-_Phase_20230224080517_605_ph.nii' ; input(2).name = '\\10.17.164.42\admin\QSM\misure\phantom_24feb23\6_swi_gre_6_te5\604_QSM_FFE_3D_1iso_ME6_-_Mag_20230224080517_604.nii' ; input(3).name = '' ; input(4).name = '\\10.17.164.42\admin\QSM\misure\phantom_24feb23\6_swi_gre_6_te5\sepia_header.mat' ; output_basename = '\\10.17.164.42\admin\QSM\misure\phantom_24feb23\6_swi_gre_6_te5\output\Sepia' ; mask_filename = ['\\10.17.164.42\admin\QSM\misure\phantom_24feb23\6_swi_gre_6_te5\Segmentation-Segment_1-label_2.nii'] ; % General algorithm parameters algorParam = struct(); algorParam.general.isBET = 0 ; algorParam.general.isInvert = 1 ; algorParam.general.isRefineBrainMask = 0 ; % Total field recovery algorithm parameters algorParam.unwrap.echoCombMethod = 'Optimum weights' ; algorParam.unwrap.unwrapMethod = 'Laplacian (MEDI)' ; algorParam.unwrap.isEddyCorrect = 0 ; algorParam.unwrap.isSaveUnwrappedEcho = 1 ; % Background field removal algorithm parameters algorParam.bfr.refine_method = '3D Polynomial' ; algorParam.bfr.refine_order = 4 ; algorParam.bfr.erode_radius = 0 ; algorParam.bfr.erode_before_radius = 2 ; algorParam.bfr.method = 'LBV' ; algorParam.bfr.tol = 0.0001 ; algorParam.bfr.depth = 5 ; algorParam.bfr.peel = 2 ; % QSM algorithm parameters algorParam.qsm.reference_tissue = 'None' ; algorParam.qsm.method = 'TKD' ; algorParam.qsm.threshold = 0.15 ; sepiaIO(input,output_basename,mask_filename,algorParam);