get_svs_from_seg - jaybgager/tracertools GitHub Wiki
This function gets a list of all the supervoxel IDs associated with a segment ID.
Arguments:
datastack(string, mandatory)- the name of the CAVE datastack the segment belongs to
seg_id(integer, mandatory)- the ID of the segment you want supervoxels for
Returns:
sv_ids(list of integers)- a list of all the supervoxel IDs that currently belong to the segment
Example
The code below gets the supervoxels belonging to the segment 720575941413124779 in the brain_and_nerve_cord datastack.
INPUT:
import tracertools as tt
svs = tt.get_svs_from_seg(
datastack = "brain_and_nerve_cord",
seg_id = 720575941413124779,
)
print(svs)
OUTPUT:
[
76492475061776745,
76492475061779442,
76492475061779424,
...
76281162871835627,
76281162871832853,
76281162871835567
]
(output truncated for space)