From a93d76c21f1e86434fbae189c3f42c92cc587cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20K=C3=BCgler?= Date: Wed, 21 Feb 2024 16:40:46 +0100 Subject: [PATCH] Update rewrite_mc_surface.py Update paint_cc_into_pred.py Update doc string --- recon_surf/paint_cc_into_pred.py | 2 +- recon_surf/rewrite_mc_surface.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/recon_surf/paint_cc_into_pred.py b/recon_surf/paint_cc_into_pred.py index e81f5ad9..1d41ae57 100644 --- a/recon_surf/paint_cc_into_pred.py +++ b/recon_surf/paint_cc_into_pred.py @@ -81,7 +81,7 @@ def argument_parse(): def paint_in_cc(pred: npt.ArrayLike, aseg_cc: npt.ArrayLike) -> npt.ArrayLike: """ - Paint corpus callosum segmentation into prediction. + Paint corpus callosum segmentation into aseg+dkt segmentation map. Note, that this function modifies the original array and does not create a copy. diff --git a/recon_surf/rewrite_mc_surface.py b/recon_surf/rewrite_mc_surface.py index bfc0cf93..bd13429e 100644 --- a/recon_surf/rewrite_mc_surface.py +++ b/recon_surf/rewrite_mc_surface.py @@ -56,7 +56,9 @@ def resafe_surface(insurf: str, outsurf: str, pretess: str) -> None: """ Take path to insurf and rewrite it to outsurf thereby fixing vertex locs flag error. - (scannerRAS instead of surfaceRAS after marching cube). + This function fixes header information not properly saved in marching cubes. + It makes sure the file header correctly references the scannerRAS instead of the surfaceRAS, + i.e. filename and volume is set to the correct data in the header. Parameters ----------