Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/scilpy/cli/scil_bundle_label_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ def main():
concat_sft.to_corner()
for i in range(len(sft_list)):
sft_list[i] = cut_streamlines_with_mask(sft_list[i],
binary_mask)
binary_mask,
cutting_style=CuttingStyle.KEEP_LONGEST)

sft_list[i] = filter_streamlines_by_nb_points(sft_list[i],
min_nb_points=4)
Expand Down
2 changes: 1 addition & 1 deletion src/scilpy/tractograms/streamline_and_mask_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def cut_streamlines_with_mask(sft, mask,
orig_space = sft.space
orig_origin = sft.origin
sft.to_vox()
sft.to_corner()
sft.to_center()

# Get the indices of the voxels
# intersected by the streamlines and the mapping from points to indices
Expand Down
Loading