napari_track_edit.application_menus.tracking_from_scratch_widget ================================================================ .. py:module:: napari_track_edit.application_menus.tracking_from_scratch_widget Classes ------- .. autoapisummary:: napari_track_edit.application_menus.tracking_from_scratch_widget.TrackingFromScratch Module Contents --------------- .. py:class:: TrackingFromScratch(viewer: napari.Viewer) Bases: :py:obj:`qtpy.QtWidgets.QWidget` Widget 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. .. py:attribute:: viewer .. py:attribute:: tracks_viewer .. py:attribute:: size_layer_dropdown .. py:attribute:: start_points_btn .. py:attribute:: start_labels_btn .. py:method:: _update_buttons(*args) -> None Enable the start buttons only when a size layer is selected. .. py:method:: _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. :param mode: "points" to track with points, "labels" to track with a segmentation. :type mode: str