Skip to content

Commit

Permalink
Add doc in ft tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentBeaud committed Sep 10, 2024
1 parent 297c4aa commit 8c26115
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/scil_ft_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8c26115

Please sign in to comment.