forked from netstim/leaddbs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathea_coregctmri_brainsfit_multiple.m
30 lines (25 loc) · 1.66 KB
/
ea_coregctmri_brainsfit_multiple.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
function varargout=ea_coregctmri_brainsfit_multiple(options)
% This function uses the BRAINSfit to register postop-CT to preop-MR.
% __________________________________________________________________________________
% Copyright (C) 2015 Charite University Medicine Berlin, Movement Disorders Unit
% Andreas Horn
if ischar(options) % return name of method.
varargout{1}='BRAINSFit - multiple runs';
varargout{2}={'SPM8','SPM12'};
varargout{3}=['nan']; % suggestion for alpha-parameter.
return
end
disp('Coregistering postop CT to preop MRI...');
ea_brainsfit([options.root,options.patientname,filesep,options.prefs.prenii_unnormalized],...
[options.root,options.patientname,filesep,options.prefs.rawctnii_unnormalized],...
[options.root,options.patientname,filesep,options.prefs.ctnii_coregistered]);
ea_brainsfit([options.root,options.patientname,filesep,options.prefs.prenii_unnormalized],...
[options.root,options.patientname,filesep,options.prefs.rawctnii_unnormalized],...
[options.root,options.patientname,filesep,options.prefs.ctnii_coregistered]);
ea_brainsfit([options.root,options.patientname,filesep,options.prefs.prenii_unnormalized],...
[options.root,options.patientname,filesep,options.prefs.rawctnii_unnormalized],...
[options.root,options.patientname,filesep,options.prefs.ctnii_coregistered]);
ea_brainsfit([options.root,options.patientname,filesep,options.prefs.prenii_unnormalized],...
[options.root,options.patientname,filesep,options.prefs.rawctnii_unnormalized],...
[options.root,options.patientname,filesep,options.prefs.ctnii_coregistered]);
disp('Coregistration done.');