histo_kit.grand_qc.artifacts

Classes

Artifact(value)

Enumeration of artifacts detected in Whole Slide Images (WSI).

class histo_kit.grand_qc.artifacts.Artifact(value)[source]

Bases: Enum

Enumeration of artifacts detected in Whole Slide Images (WSI).

Each member corresponds to a specific type of artifact, background or tissue area defined during artifact detection with the GrandQC model.

ART_DARKSPOT = 3
ART_EDGE = 5
ART_FOCUS = 6
ART_FOLD = 2
ART_PEN = 4
BG_MODEL = 7
BG_THR = 0
NORM = 1
color()[source]

Return the RGB color associated with this artifact.

Returns:

RGB triplet corresponding to the artifact type.

Return type:

list of int