darsia.LabelsAssistant#

class LabelsAssistant(labels=None, background=None, **kwargs)[source]#

Bases: object

Assistant to modify labels.

Initialize module.

Parameters:
labelsOptional[darsia.Image]

Input labels.

backgroundOptional[darsia.Image]

Background image.

Methods

Attributes

name

Name of the assistant.

background

Background image.

monochromatic_background

Monochromatic background image.

cache_background

Cache for background image.

labels

Input labels.

previous_labels

Reference to previous labels.

current_labels

Reference to current labels.

next_action

Next module to be called.

finalized

Flag indicating whether the assistant has been finalized.

verbosity

Verbosity flag.

first_call

Flag indicating whether the assistant is called for the first time.

background#

Background image.

cache_background#

Cache for background image.

current_labels#

Reference to current labels.

finalized#

Flag indicating whether the assistant has been finalized.

first_call#

Flag indicating whether the assistant is called for the first time.

labels#

Input labels.

monochromatic_background#

Monochromatic background image.

name#

Name of the assistant.

next_action#

Next module to be called.

previous_labels#

Reference to previous labels.

verbosity#

Verbosity flag.