Skip to content

Commit

Permalink
Support Elastix 5.1
Browse files Browse the repository at this point in the history
Eddy currents, Motion Correction and EPI registration now supports the latest version of Elastix
  • Loading branch information
delucaal committed Jan 9, 2024
1 parent e8b626f commit 640ce01
Show file tree
Hide file tree
Showing 5 changed files with 9,227 additions and 20 deletions.
13 changes: 9 additions & 4 deletions Core/MRT_Library.m
Original file line number Diff line number Diff line change
Expand Up @@ -1907,10 +1907,15 @@ function WriteElastixParameters(fout,pars)
function [parval,ix] = GetElastixParameter(params,parameter_name)
parval = NaN;
for ix=1:length(params)
if(contains(params{ix},parameter_name))
sp = strfind(params{ix},' ');
ep = strfind(params{ix},')');
parval = params{ix}(sp:ep-1);
sp = strfind(params{ix},'(');
ep = strfind(params{ix},')');
if(isempty(sp))
continue
end
line = params{ix}(sp+1:ep-1);
parts = strsplit(line);
if(strcmp(parts{1},parameter_name))
parval = line;
return
end
end
Expand Down
14 changes: 13 additions & 1 deletion ExploreDTIInterface/Auxiliaries/MEX/CompileMexs.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,19 @@

for file_id=1:length(files2compile)
disp(['Building ' files2compile(file_id).name]);
cmd = ['mex ' files2compile(file_id).name];
cmd = ['mex ' files2compile(file_id).name ' -llapack'];
try
eval(cmd);
catch
disp('Failed');
end
end

files2compile = dir('*.c');

for file_id=1:length(files2compile)
disp(['Building ' files2compile(file_id).name]);
cmd = ['mex ' files2compile(file_id).name ' -llapack'];
try
eval(cmd);
catch
Expand Down
Binary file not shown.
Loading

0 comments on commit 640ce01

Please sign in to comment.