1
1
function auto_acpc_reorient(imgpath , img_type , imgpath_other , mode , smooth_factor , flags_affine , flags_mi )
2
-
3
2
% Cross-platform automatic AC-PC realignment/reorientation and coregistration
4
3
% for both healthy volunteers and brain damaged patients using template matching
5
4
% using SPM 12.
5
+ %
6
6
% FORMAT auto_acpc_reorient(imgpath, img_type, imgpath_other, mode, smooth_factor, flags_affine, flags_mi)
7
7
%
8
8
% imgpath - filepath or chararray of filepaths of NIfTI images to reorient (as `ls` returns).
@@ -27,6 +27,7 @@ function auto_acpc_reorient(imgpath, img_type, imgpath_other, mode, smooth_facto
27
27
% flags_mi - provide your custom flags for the mutual information coregistration
28
28
%
29
29
% Returns: nothing, but the input image's headers are modified.
30
+ % _________________________________________________________________________
30
31
%
31
32
% This uses a non-linear coregistration on a template,
32
33
% although the reorientation only applies a rigid-body transform.
@@ -184,7 +185,7 @@ function auto_acpc_reorient(imgpath, img_type, imgpath_other, mode, smooth_facto
184
185
end % endfor
185
186
end % endif
186
187
187
- % MUTUAL INFORMATION COREGISTRATION
188
+ % JOINT HISTOGRAM ( MUTUAL INFORMATION) COREGISTRATION
188
189
M_mi_mem = {};
189
190
if strcmp(mode , ' mi' ) | strcmp(mode , ' both' )
190
191
fprintf(' Mutual information reorientation, please wait...\n ' );
0 commit comments