napari_track_edit.application_menus.tracking_from_scratch_widget
Classes
Widget to create an empty tracking tree (with either point or label tracks), to |
Module Contents
- class napari_track_edit.application_menus.tracking_from_scratch_widget.TrackingFromScratch(viewer: napari.Viewer)
Bases:
qtpy.QtWidgets.QWidgetWidget to create an empty tracking tree (with either point or label tracks), to track from scratch. The tree starts out without any nodes; nodes are added by manually annotating in the track layers.
- viewer
- tracks_viewer
- size_layer_dropdown
- start_points_btn
- start_labels_btn
- _update_buttons(*args) → None
Enable the start buttons only when a size layer is selected.
- _start_tracking(mode: str) → None
Create a new empty tree with empty TrackPoints/TrackGraph layers (and a TrackLabels layer for
mode == 'labels'). The array size is taken from the selected Image/Labels layer.- Parameters:
mode (str) – “points” to track with points, “labels” to track with a segmentation.