stereo.algorithm.spa_track.SpaTrack.set_start_cells¶
- SpaTrack.set_start_cells(select_way, cell_type=None, start_point=None, spatial_key=None, split=False, n_clusters=2, n_neigh=5)[source]¶
Use coordinates or cell type to manually select starting cells.
- Parameters:
select_way (
Literal['coordinates','cell_type']) – Ways to select starting cells.cell_type: select by cell type.coordinates: select by coordinates.cell_type (
Optional[str]) – Restrict the cell type of starting cells, defaults to Nonestart_point (
Optional[Tuple[int,int]]) – The coordinates of the start point in coordinates mode, defaults to Nonespatial_key (
Optional[str]) – The key to get position information of cells, by default, thedata.spatial_keywill be used.split (
bool) – Whether to split the specific type of cells into several small clusters according to cell density, defaults to Falsen_clusters (
int) – The number of cluster centers after splitting, defaults to 2n_neigh (
int) – The number of neighbors next to the start point/cluster center selected as the starting cell, defaults to 5
- Returns:
The indices of the starting cells