Skip to main content

types

Types corresponding to output JSON objects from various Altris models.

Module

Global variables

  • AltrisBiomarkerOutput - Complete biomarker analysis output for Altris model outputs post-PATHOLOGY_TO_SEGMENTATION_TRANSFORMATION conversion.
  • AltrisConfigurablePathologyModelV2Output - Complete biomarker analysis output for AltrisConfigurablePathologyModel (v2).
  • AltrisGASegmentationModelPostV11Output - Complete biomarker analysis output for AltrisGASegmentationModel (post-v11).
  • AltrisGASegmentationModelPreV11Output - Complete biomarker analysis output for AltrisGASegmentationModel (pre-v11).
  • FoveaLandmarks - A list of 3-element integer lists, representing Fovea landmark coordinates.

    These have the form (slice, x, y), e.g. [[62, 467, 694], [62, 585, 685], ...]

  • MaskInstance - Represents a single biomarker instance in the segmentation mask.

Classes

AltrisBiomarkerEntry

class AltrisBiomarkerEntry(*args, **kwargs):

Complete biomarker analysis result for Altris model output.

For post-PATHOLOGY_TO_SEGMENTATION_TRANSFORMATION conversion.

Variables

  • static cnv_probability : float

AltrisConfigurablePathologyModelV2Entry

class AltrisConfigurablePathologyModelV2Entry(*args, **kwargs):

Complete biomarker analysis result for AltrisConfigurablePathologyModel (v2).

Variables

AltrisGASegmentationModelEntry

class AltrisGASegmentationModelEntry(*args, **kwargs):

Complete biomarker analysis result for AltrisGASegmentationModel.

Variables

  • static cnv_probability : float

ClassesAltrisBiomarker

class ClassesAltrisBiomarker(*args, **kwargs):

Classification probabilities for different conditions.

For post-PATHOLOGY_TO_SEGMENTATION_TRANSFORMATION conversion.

Variables

  • static diabetic_macular_edema : float
  • static diabetic_retinopathy : float
  • static dry_amd : float
  • static epiretinal_fibrosis : float
  • static geographic_atrophy : float
  • static macular_degeneration : float
  • static wet_amd : float

ClassesPathologyV2

class ClassesPathologyV2(*args, **kwargs):

Classification probabilities for different conditions.

For AltrisConfigurablePathologyModel (v2).

Variables

  • static choroidal_neovascularization : float
  • static diabetic_macular_edema : float
  • static diabetic_retinopathy : float
  • static dry_amd : float
  • static epiretinal_fibrosis : float
  • static geographic_atrophy : float
  • static macular_degeneration : float
  • static wet_amd : float

IndexClassDictBiomarker

class IndexClassDictBiomarker(*args, **kwargs):

Metadata dict for indices of the biomarker types.

The indices/values for these may be consistent and are provided in the comments below.

Variables

  • static confluent_drusen : int
  • static diffuse_edema : int
  • static ellipsoid_zone_loss : int
  • static epiretinal_fibrosis : int
  • static hard_drusen : int
  • static hard_exudates : int
  • static hypertransmission : int
  • static intraretinal_cystoid_fluid : int
  • static intraretinal_hyperreflective_foci : int
  • static is_os_disruption : int
  • static neurosensory_retina_atrophy : int
  • static reticular_pseudodrusen : int
  • static rpe_atrophy : int
  • static rpe_disruption : int
  • static serous_rpe_detachment : int
  • static soft_drusen : int
  • static subretinal_fluid : int
  • static subretinal_hyperreflective_material__shrm_ : int

IndexClassDictClass

class IndexClassDictClass(*args, **kwargs):

Metadata dict for indices of the classification types.

The indices/values for these may be consistent and are provided in the comments below.

Variables

  • static choroidal_neovascularization : int
  • static diabetic_macular_edema : int
  • static diabetic_retinopathy : int
  • static dry_amd : int
  • static epiretinal_fibrosis : int
  • static geographic_atrophy : int
  • static macular_degeneration : int
  • static wet_amd : int

MaskAltrisBiomarker

class MaskAltrisBiomarker(*args, **kwargs):

Represents the segmentation mask containing biomarker instances.

For post-PATHOLOGY_TO_SEGMENTATION_TRANSFORMATION conversion.

Variables

MaskInstanceEllipse

class MaskInstanceEllipse(*args, **kwargs):

Represents a single elliptical biomarker instance in the segmentation mask.

Variables

  • static angle : float
  • static className : str
  • static cx : float
  • static cy : float
  • static probability : float
  • static rx : float
  • static ry : float
  • static type : Literal['ellipse']

MaskInstanceOther

class MaskInstanceOther(*args, **kwargs):

Represents a single unknown type of biomarker instance in the segmentation mask.

Variables

  • static className : str
  • static probability : float
  • static type : str

MaskInstancePoint

class MaskInstancePoint(*args, **kwargs):

Represents a single point biomarker instance in the segmentation mask.

Variables

  • static className : str
  • static probability : float
  • static type : Literal['point']

MaskInstancePolygon

class MaskInstancePolygon(*args, **kwargs):

Represents a single polygonal biomarker instance in the segmentation mask.

Variables

  • static className : str
  • static points : list[float]
  • static probability : float
  • static type : Literal['polygon']

MaskInstancePolyline

class MaskInstancePolyline(*args, **kwargs):

Represents a single polyline biomarker instance in the segmentation mask.

Variables

  • static className : str
  • static points : list[float]
  • static probability : float
  • static type : Literal['polyline']

MaskPathologyV2

class MaskPathologyV2(*args, **kwargs):

Represents the segmentation mask containing biomarker instances.

For AltrisConfigurablePathologyModel (v2).

MaskSegmentationModel

class MaskSegmentationModel(*args, **kwargs):

Represents the segmentation mask containing biomarker instances.

For AltrisGASegmentationModel.

MetadataPathologyV2

class MetadataPathologyV2(*args, **kwargs):

Metadata containing image dimensions and class mappings.

For AltrisConfigurablePathologyModel (v2).

Variables

  • static height : float
  • static width : float

MetadataSegmentationModel

class MetadataSegmentationModel(*args, **kwargs):

Metadata containing image dimensions and class mappings.

For AltrisGASegmentationModel.

Variables

  • static height : int
  • static width : int