Skip to main content

types

Types corresponding to output JSON objects from various Altris models.

Module

Global variables

  • 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.

Ancestors

  • builtins.dict

Variables

  • static cnv_probability : float

AltrisConfigurablePathologyModelV2Entry

class AltrisConfigurablePathologyModelV2Entry(*args, **kwargs):

Complete biomarker analysis result for AltrisConfigurablePathologyModel (v2).

Ancestors

  • builtins.dict

Variables

AltrisGASegmentationModelEntry

class AltrisGASegmentationModelEntry(*args, **kwargs):

Complete biomarker analysis result for AltrisGASegmentationModel.

Ancestors

  • builtins.dict

Variables

  • static cnv_probability : float

ClassesAltrisBiomarker

class ClassesAltrisBiomarker(*args, **kwargs):

Classification probabilities for different conditions.

For post-PATHOLOGY_TO_SEGMENTATION_TRANSFORMATION conversion.

Ancestors

  • builtins.dict

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).

Ancestors

  • builtins.dict

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.

Ancestors

  • builtins.dict

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.

Ancestors

  • builtins.dict

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.

Ancestors

  • builtins.dict

Variables

  • static instances : list

MaskInstanceEllipse

class MaskInstanceEllipse(*args, **kwargs):

Represents a single elliptical biomarker instance in the segmentation mask.

Ancestors

  • builtins.dict

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.

Ancestors

  • builtins.dict

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.

Ancestors

  • builtins.dict

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.

Ancestors

  • builtins.dict

Variables

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

MaskInstancePolyline

class MaskInstancePolyline(*args, **kwargs):

Represents a single polyline biomarker instance in the segmentation mask.

Ancestors

  • builtins.dict

Variables

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

MaskPathologyV2

class MaskPathologyV2(*args, **kwargs):

Represents the segmentation mask containing biomarker instances.

For AltrisConfigurablePathologyModel (v2).

Ancestors

  • builtins.dict

Variables

  • static instances : list

MaskSegmentationModel

class MaskSegmentationModel(*args, **kwargs):

Represents the segmentation mask containing biomarker instances.

For AltrisGASegmentationModel.

Ancestors

  • builtins.dict

Variables

  • static instances : list

MetadataPathologyV2

class MetadataPathologyV2(*args, **kwargs):

Metadata containing image dimensions and class mappings.

For AltrisConfigurablePathologyModel (v2).

Ancestors

  • builtins.dict

Variables

  • static height : float
  • static width : float

MetadataSegmentationModel

class MetadataSegmentationModel(*args, **kwargs):

Metadata containing image dimensions and class mappings.

For AltrisGASegmentationModel.

Ancestors

  • builtins.dict

Variables

  • static height : int
  • static width : int

AltrisConfigurablePathologyModelV2Output

class AltrisConfigurablePathologyModelV2Output(*args, **kwargs):

Built-in mutable sequence.

If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.

Ancestors

  • builtins.list

Methods


append

def append(self, object, /):

Append object to the end of the list.

clear

def clear(self, /):

Remove all items from list.

copy

def copy(self, /):

Return a shallow copy of the list.

count

def count(self, value, /):

Return number of occurrences of value.

extend

def extend(self, iterable, /):

Extend list by appending elements from the iterable.

index

def index(self, value, start=0, stop=9223372036854775807, /):

Return first index of value.

Raises ValueError if the value is not present.

insert

def insert(self, index, object, /):

Insert object before index.

pop

def pop(self, index=-1, /):

Remove and return item at index (default last).

Raises IndexError if list is empty or index is out of range.

remove

def remove(self, value, /):

Remove first occurrence of value.

Raises ValueError if the value is not present.

reverse

def reverse(self, /):

Reverse IN PLACE.

sort

def sort(self, /, *, key=None, reverse=False):

Sort the list in ascending order and return None.

The sort is in-place (i.e. the list itself is modified) and stable (i.e. the order of two equal elements is maintained).

If a key function is given, apply it once to each list item and sort them, ascending or descending, according to their function values.

The reverse flag can be set to sort in descending order.

AltrisGASegmentationModelPreV11Output

class AltrisGASegmentationModelPreV11Output(*args, **kwargs):

Built-in mutable sequence.

If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.

Ancestors

  • builtins.list

Methods


append

def append(self, object, /):

Append object to the end of the list.

clear

def clear(self, /):

Remove all items from list.

copy

def copy(self, /):

Return a shallow copy of the list.

count

def count(self, value, /):

Return number of occurrences of value.

extend

def extend(self, iterable, /):

Extend list by appending elements from the iterable.

index

def index(self, value, start=0, stop=9223372036854775807, /):

Return first index of value.

Raises ValueError if the value is not present.

insert

def insert(self, index, object, /):

Insert object before index.

pop

def pop(self, index=-1, /):

Remove and return item at index (default last).

Raises IndexError if list is empty or index is out of range.

remove

def remove(self, value, /):

Remove first occurrence of value.

Raises ValueError if the value is not present.

reverse

def reverse(self, /):

Reverse IN PLACE.

sort

def sort(self, /, *, key=None, reverse=False):

Sort the list in ascending order and return None.

The sort is in-place (i.e. the list itself is modified) and stable (i.e. the order of two equal elements is maintained).

If a key function is given, apply it once to each list item and sort them, ascending or descending, according to their function values.

The reverse flag can be set to sort in descending order.

AltrisGASegmentationModelPostV11Output

class AltrisGASegmentationModelPostV11Output(*args, **kwargs):

Built-in mutable sequence.

If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.

Ancestors

  • builtins.list

Methods


append

def append(self, object, /):

Append object to the end of the list.

clear

def clear(self, /):

Remove all items from list.

copy

def copy(self, /):

Return a shallow copy of the list.

count

def count(self, value, /):

Return number of occurrences of value.

extend

def extend(self, iterable, /):

Extend list by appending elements from the iterable.

index

def index(self, value, start=0, stop=9223372036854775807, /):

Return first index of value.

Raises ValueError if the value is not present.

insert

def insert(self, index, object, /):

Insert object before index.

pop

def pop(self, index=-1, /):

Remove and return item at index (default last).

Raises IndexError if list is empty or index is out of range.

remove

def remove(self, value, /):

Remove first occurrence of value.

Raises ValueError if the value is not present.

reverse

def reverse(self, /):

Reverse IN PLACE.

sort

def sort(self, /, *, key=None, reverse=False):

Sort the list in ascending order and return None.

The sort is in-place (i.e. the list itself is modified) and stable (i.e. the order of two equal elements is maintained).

If a key function is given, apply it once to each list item and sort them, ascending or descending, according to their function values.

The reverse flag can be set to sort in descending order.

FoveaLandmarks

class FoveaLandmarks(*args, **kwargs):

Built-in mutable sequence.

If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.

Ancestors

  • builtins.list

Methods


append

def append(self, object, /):

Append object to the end of the list.

clear

def clear(self, /):

Remove all items from list.

copy

def copy(self, /):

Return a shallow copy of the list.

count

def count(self, value, /):

Return number of occurrences of value.

extend

def extend(self, iterable, /):

Extend list by appending elements from the iterable.

index

def index(self, value, start=0, stop=9223372036854775807, /):

Return first index of value.

Raises ValueError if the value is not present.

insert

def insert(self, index, object, /):

Insert object before index.

pop

def pop(self, index=-1, /):

Remove and return item at index (default last).

Raises IndexError if list is empty or index is out of range.

remove

def remove(self, value, /):

Remove first occurrence of value.

Raises ValueError if the value is not present.

reverse

def reverse(self, /):

Reverse IN PLACE.

sort

def sort(self, /, *, key=None, reverse=False):

Sort the list in ascending order and return None.

The sort is in-place (i.e. the list itself is modified) and stable (i.e. the order of two equal elements is maintained).

If a key function is given, apply it once to each list item and sort them, ascending or descending, according to their function values.

The reverse flag can be set to sort in descending order.

AltrisBiomarkerOutput

class AltrisBiomarkerOutput(*args, **kwargs):

Built-in mutable sequence.

If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.

Ancestors

  • builtins.list

Methods


append

def append(self, object, /):

Append object to the end of the list.

clear

def clear(self, /):

Remove all items from list.

copy

def copy(self, /):

Return a shallow copy of the list.

count

def count(self, value, /):

Return number of occurrences of value.

extend

def extend(self, iterable, /):

Extend list by appending elements from the iterable.

index

def index(self, value, start=0, stop=9223372036854775807, /):

Return first index of value.

Raises ValueError if the value is not present.

insert

def insert(self, index, object, /):

Insert object before index.

pop

def pop(self, index=-1, /):

Remove and return item at index (default last).

Raises IndexError if list is empty or index is out of range.

remove

def remove(self, value, /):

Remove first occurrence of value.

Raises ValueError if the value is not present.

reverse

def reverse(self, /):

Reverse IN PLACE.

sort

def sort(self, /, *, key=None, reverse=False):

Sort the list in ascending order and return None.

The sort is in-place (i.e. the list itself is modified) and stable (i.e. the order of two equal elements is maintained).

If a key function is given, apply it once to each list item and sort them, ascending or descending, according to their function values.

The reverse flag can be set to sort in descending order.