etdrs_calculation_algorithm
Algorithm for computing ETDRS subfields.
Not currently used in the project but may be useful in the future.
Classes
ETDRSAlgorithm
class ETDRSAlgorithm( datastructure: DataStructure, laterality: str, slo_photo_location_prefixes: Optional[SLOSegmentationLocationPrefix] = None, slo_image_metadata_columns: Optional[SLOImageMetadataColumns] = None, oct_image_metadata_columns: Optional[OCTImageMetadataColumns] = None, threshold: float = 0.7, calculate_on_oct: bool = False, slo_mm_width: float = 8.8, slo_mm_height: float = 8.8, **kwargs: Any,):Algorithm for computing ETDRS subfields.
Arguments
datastructure: The data structure to use for the algorithm.laterality: The column name of the column that contains the laterality of the scans.oct_image_metadata_columns: A list of column names for the OCT image. Should include the width and depth size in mm. Defaults to None.slo_photo_location_prefixes: The list of column names for the locations of the OCT segmentation on the SLO. Should include the location and end of the first image on both x and y-axis as well as the start location of the last image on both x and y-axis. Defaults to None.slo_image_metadata_columns: A list of column names for the SLO image. Should include the width and height in mm. Defaults to None.threshold: The threshold for the segmentation. Defaults to None.
Ancestors
- BaseNonModelAlgorithmFactory
- BaseAlgorithmFactory
- abc.ABC
- bitfount.federated.roles._RolesMixIn
- bitfount.types._BaseSerializableObjectMixIn
- typing.Generic
Variables
- static
fields_dict : ClassVar[T_FIELDS_DICT]
Methods
modeller
def modeller( self, *, context: ProtocolContext, **kwargs: Any,) ‑> NoResultsModellerAlgorithm:Inherited from:
BaseNonModelAlgorithmFactory.modeller :
Modeller-side of the algorithm.
worker
def worker( self, *, context: ProtocolContext, **kwargs: Any,) ‑> bitfount.federated.algorithms.ophthalmology.etdrs_calculation_algorithm._WorkerSide:Inherited from:
BaseNonModelAlgorithmFactory.worker :
Worker-side of the algorithm.