Skip to content

Commit

Permalink
prettier header comments
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen L. <lrq3000@gmail.com>
  • Loading branch information
lrq3000 committed Apr 19, 2020
1 parent a1ed929 commit e4b6acd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion auto_acpc_coreg.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function auto_acpc_coreg(struct, func, others, mode, modality)

% Coregister functional (or other modalities) to structural images using rigid-body transform
% via either an euclidian coregistration or a Mutual Information calculation on Joint Histograms.
%
% FORMAT auto_acpc_coreg(struct, func, others, mode, modality)
%
% struct - filename of the reference structural image
Expand All @@ -11,6 +11,7 @@ function auto_acpc_coreg(struct, func, others, mode, modality)
% modality - modality of the 'func' image, can be any type supported by SPM: 't1', 't2', 'epi', 'pd', 'pet', 'spect'. Default: 'epi'.
%
% Output: the voxel-to-world part of the headers of the selected source (func) and others images is modified.
% _________________________________________________________________________
%
% It is advised to check (and fix if necessary) manually the result (using CheckReg).
% Works with SPM12.
Expand Down
5 changes: 3 additions & 2 deletions auto_acpc_reorient.m
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
function auto_acpc_reorient(imgpath, img_type, imgpath_other, mode, smooth_factor, flags_affine, flags_mi)

% Cross-platform automatic AC-PC realignment/reorientation and coregistration
% for both healthy volunteers and brain damaged patients using template matching
% using SPM 12.
%
% FORMAT auto_acpc_reorient(imgpath, img_type, imgpath_other, mode, smooth_factor, flags_affine, flags_mi)
%
% imgpath - filepath or chararray of filepaths of NIfTI images to reorient (as `ls` returns).
Expand All @@ -27,6 +27,7 @@ function auto_acpc_reorient(imgpath, img_type, imgpath_other, mode, smooth_facto
% flags_mi - provide your custom flags for the mutual information coregistration
%
% Returns: nothing, but the input image's headers are modified.
% _________________________________________________________________________
%
% This uses a non-linear coregistration on a template,
% although the reorientation only applies a rigid-body transform.
Expand Down Expand Up @@ -184,7 +185,7 @@ function auto_acpc_reorient(imgpath, img_type, imgpath_other, mode, smooth_facto
end %endfor
end %endif

% MUTUAL INFORMATION COREGISTRATION
% JOINT HISTOGRAM (MUTUAL INFORMATION) COREGISTRATION
M_mi_mem = {};
if strcmp(mode, 'mi') | strcmp(mode, 'both')
fprintf('Mutual information reorientation, please wait...\n');
Expand Down

0 comments on commit e4b6acd

Please sign in to comment.