LayerImageEntry

class tat.layer_image_entry.LayerImageEntry(parent: PySide6.QtWidgets.QWidget, image: PySide6.QtGui.QImage, array: numpy.ndarray, name: str, is_merger: bool = False, layer_index: Optional[int] = None, parent_layers: Optional[List[int]] = None)
__init__(parent: PySide6.QtWidgets.QWidget, image: PySide6.QtGui.QImage, array: numpy.ndarray, name: str, is_merger: bool = False, layer_index: Optional[int] = None, parent_layers: Optional[List[int]] = None)
Parameters
  • parent (QWidget) – The parent containing the ImageEntry.

  • image (QImage) – The image that will be draw in the thumbnail.

  • array (numpy.ndarray) – Array of the image.

  • name (str) – The name that will be shown below the thumbnail. Also used for image basename.

  • is_merger (bool) – Tells if the layer a merger of multiple layers or not.

  • layer_index (int, optional) – Index of the layer if it is not a merger.

  • parent_layers (list of int, optional) – List of the parent layers if the layer is a merger.