Skip to main content

simplify_tractogram

Function simplify_tractogram 

Source
pub fn simplify_tractogram(
    input: &Tractogram,
    opts: &SimplifyOptions,
) -> Result<(Tractogram, SimplifyStats)>
Expand description

Build a new Tractogram from input with each streamline simplified to a Catmull-Rom-fittable control polygon. Preserves the source header (so spatial metadata round-trips) and writes the FITTED_MARKER_KEY marker.

When opts.group is set, only streamlines belonging to that group are kept; output groups are remapped to the new (compacted) streamline indices.