From 8c261152f9eb737478d07aff70e336da7b3dfc56 Mon Sep 17 00:00:00 2001 From: VincentBeaud Date: Tue, 10 Sep 2024 14:50:51 -0400 Subject: [PATCH] Add doc in ft tracking --- scripts/scil_ft_tracking.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/scil_ft_tracking.py b/scripts/scil_ft_tracking.py index 19057d413..fc615c33b 100644 --- a/scripts/scil_ft_tracking.py +++ b/scripts/scil_ft_tracking.py @@ -202,6 +202,12 @@ def main(): len(centerlines)) logging.debug("Instantiating datavolumes") + # The scilpy Tracker requires a mask for tracking, but fibertube tracking + # aims to eliminate grids (or masks) in tractography. Instead, the tracking + # stops when no more fibertubes are detected by the Tracker. + # + # Since the scilpy Tracker requires a mask, we provide a fake one that will + # never interfere. fake_mask_data = np.ones(in_sft.dimensions) fake_mask = DataVolume(fake_mask_data, in_sft.voxel_sizes, 'nearest') datavolume = FibertubeDataVolume(centerlines, diameters, in_sft,