mitk.transfer_labels_at_time_step

mitk.transfer_labels_at_time_step#

mitk.transfer_labels_at_time_step(source: object, destination: object, time_step: SupportsInt, label_mapping: collections.abc.Iterable, merge_style: object = <MergeStyle.REPLACE: 0>, overwrite_style: object = <OverwriteStyle.REGARD_LOCKS: 0>, destination_labels: object = None, source_background: SupportsInt = 0, destination_background: SupportsInt = 0, destination_background_locked: bool = False) None#

Single-time-step variant of transfer_labels().

Identical to transfer_labels() but restricted to the given time_step. See its documentation for argument semantics.

Parameters:
  • source – Source segmentation or image.

  • destination – Target segmentation or image.

  • time_step – Time step to transfer.

  • label_mapping – Iterable of (source_value, destination_value) pairs.

  • merge_styleMergeStyle. Defaults to REPLACE.

  • overwrite_styleOverwriteStyle. Defaults to REGARD_LOCKS.

  • destination_labels – Image-mode only; see transfer_labels().

  • source_background – Image-mode only.

  • destination_background – Image-mode only.

  • destination_background_locked – Image-mode only.