ccf_streamlines.processing.remove_duplicate_voxels_from_paths#
- ccf_streamlines.processing.remove_duplicate_voxels_from_paths(paths)#
Remove duplicate consecutive voxels from the paths
Duplicate consecutive voxels are identified and removed - the list of voxels is then shifted to fill in the gaps left by the duplicates, so the format is consistent with the original.
- Parameters
paths (array) – Set of paths containing some duplicated voxels
- Returns
new_paths – Set of paths with duplicate voxels removed
- Return type
array