From e4b6acd2f8c964981d28845b2013990834a1e916 Mon Sep 17 00:00:00 2001 From: Stephen L Date: Sun, 19 Apr 2020 04:19:29 +0200 Subject: [PATCH] prettier header comments Signed-off-by: Stephen L. --- auto_acpc_coreg.m | 3 ++- auto_acpc_reorient.m | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/auto_acpc_coreg.m b/auto_acpc_coreg.m index 2e83dc4..af44f6a 100644 --- a/auto_acpc_coreg.m +++ b/auto_acpc_coreg.m @@ -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 @@ -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. diff --git a/auto_acpc_reorient.m b/auto_acpc_reorient.m index 15efa2e..7f641f6 100644 --- a/auto_acpc_reorient.m +++ b/auto_acpc_reorient.m @@ -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). @@ -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. @@ -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');