Skip to content

funtracks.actions.update_segmentation

UpdateNodeSeg

UpdateNodeSeg(
    tracks: Tracks,
    node: Node,
    mask: Mask,
    added: bool = True,
)

Bases: BasicAction

Action for updating the segmentation associated with a node.

New nodes call AddNode with mask instead of this action.

Parameters:

Name Type Description Default
tracks Tracks

The tracks to update the segmentations for

required
node Node

The node with updated segmentation

required
mask Mask

The mask that was updated for the node

required
added bool

If the provided mask were added (True) or deleted (False) from this node. Defaults to True

True

inverse

inverse() -> BasicAction

Restore previous attributes