pyrot.eye_modelling.match_with_biometry#
Attributes#
Functions#
|
Calculate the required cornea AP radius to have the required AD for an elliptical cornea model. |
|
Determine the cornea radii for a spherical cornea based on a specific AD and limbus radius. |
|
Calculate the required iris outer radius to have the correct vitreous depth (including lens and retina). |
|
Match the eye model parameters with the provided biometry data. |
|
Module Contents#
- pyrot.eye_modelling.match_with_biometry.logger#
- pyrot.eye_modelling.match_with_biometry.calc_elliptical_cornea_radii(cornea_thickness: float, iris_outerradius: float, aqueous_depth: float, iris_thickness: float, shape_factor: float) tuple[float, float]#
Calculate the required cornea AP radius to have the required AD for an elliptical cornea model.
Parameters#
- cornea_thicknessfloat
Central corneal thickness (CCT) in cm.
- iris_outerradiusfloat
Outer radius of the iris in cm.
- aqueous_depthfloat
Aqueous depth (posterior cornea to anterior lens) in cm.
- iris_thicknessfloat
Thickness of the iris in cm.
- shape_factorfloat
Shape factor for the elliptical cornea model.
Returns#
- cornea_ap_radiusfloat
Anterior-posterior radius of the cornea in cm.
- cornea_min_radiusfloat
Minimum radius of the cornea in cm.
- pyrot.eye_modelling.match_with_biometry.calc_spherical_cornea_radii(cornea_thickness: float, iris_outerradius: float, aqueous_depth: float, iris_thickness: float) float#
Determine the cornea radii for a spherical cornea based on a specific AD and limbus radius. r = (a^2 + b^2)/2a with a = distance posterior corneal surface to anterior iris surface and b = limbus radius see also the folder ‘documentation’.
Parameters#
- iris_outerradiusfloat
Outer radius of the iris in cm.
- aqueous_depthfloat
Aqueous depth (posterior cornea to anterior lens) in cm.
- iris_thicknessfloat
Thickness of the iris in cm.
- cornea_thicknessfloat
Central corneal thickness in cm.
Returns#
- cornea_outerradiusfloat
Outer radius of the cornea in cm. Only one radius as the cornea model is a sphere.
- pyrot.eye_modelling.match_with_biometry.calc_iris_outerradius(sclera_lr_outer_radius: float, sclera_is_outer_radius: float, sclera_ap_outer_radius: float, sclera_thickness: float, vitreous_depth_incl_lens: float, iris_thickness: float, retina_thickness: float) float#
Calculate the required iris outer radius to have the correct vitreous depth (including lens and retina).
Parameters#
- sclera_lr_outer_radiusfloat
Outer sclera semi-axis length in the left-right direction in cm.
- sclera_is_outer_radiusfloat
Outer sclera semi-axis length in the inferior-superior direction in cm.
- sclera_ap_outer_radiusfloat
Outer sclera semi-axis length in the anterior-posterior direction in cm.
- sclera_thicknessfloat
Thickness of the sclera in cm.
- vitreous_depth_incl_lensfloat
Vitreous depth including lens in cm.
- iris_thicknessfloat
Thickness of the iris in cm.
Returns#
- iris_outerradiusfloat
Outer radius of the iris in cm.
- pyrot.eye_modelling.match_with_biometry.match_eye_model(eye_model_generators: object, eye_model_parameters: object, biometry_data: dict, cornea_type: str) None#
Match the eye model parameters with the provided biometry data. Make the iris outerradius such that the vitreous length is correct and subsequently make the cornea radii such that the AD is correct.
Parameters#
- eye_modelobject
The eye model object from RayOcular.
- eye_model_parametersobject
An object containing specific eye model parameters
- biometry_datadict
Dictionary containing biometry measurements.
- cornea_typestr
Type of cornea model (‘elliptical’ or ‘spherical’). ‘elliptical’ gives an elliptical model where the AP radius differs from the LR and IS radii, which are equal ‘spherical’ gives a spherical model
Raises#
- NotImplementedError
If an unsupported cornea type is provided.
- pyrot.eye_modelling.match_with_biometry.get_eye_model_geometry(eye_model, structure_type)#