Closed clbarnes closed 4 years ago
Arguments: criterion length
Argument: number of points
Descend from root, laying down treenode every X distance. At branch point, distribute remaining treenodes proportional to cable distance below branch. Probably over-weights terminal dendrites.
Arguments: number of branches to keep
This is probably a better fit for arbor-rs.
Take a list of slabs.
Either resample every slab at a given length (see pynblast), linear/gaussian/spline, or distribute
n
sampling points proportional to length of each slab (randomly with seed?). Do not bind sampling points to ends, e.g.numpy.linspace(0, 1, n_samples + 2)[1:-1]
Interpolation will have to be implemented.