pysted.utils.generate_fiber_with_synapses
- pysted.utils.generate_fiber_with_synapses(datamap_shape, fibre_min, fibre_max, n_synapses, min_dist, polygon_scale=(5, 10))
This func allows a user to generate a fiber object and synapses attached to it.
- Parameters:
datamap_shape – shape of the image to which we will add the fiber and synapses
fibre_min – min position for the fibre to start at
fibre_max – max position for the fibre to start at
n_synapses – number of synapses to put on the fiber
min_dist – min distance we want to have between the synapses. this is to make sure we don’t have overlapping synapses
polygon_scale – values from which the polygon size will be sampled
- Returns:
the fiber object and the polygon objects representing the synapses