Skip to content

User guide

Analyzers

POST: /get_pathology_amount

Description

Calculates number of drusen on examination. Allowed pathology classes:

  • hard_drusen

  • soft_drusen

  • confluent_drusen

  • drusen

Request Body

A list of dictionaries in the following format:

[
    {
        "thickness_map": [array H x W],
        "pathology": <pathology_name_1: str>,
    },
    ...
    {
        "thickness_map": [array H x W],
        "pathology": <pathology_name_n: str>,
    }
]

Response

A JSON object with amount of pathologies instances in the following format:

{
    "pathology_name_1": int,
    ...
    "pathology_name_n": int
}

Statistics

POST: /get_difference_calculations

Description

Calculates absolute and relative (percentage) differences between each pair of measurements (states) in the provided dictionary.

Request Body

A JSON object containing pathology measurements for two states in the following format:

{
    "pathology_name_1": {
        "state_1": float,
        "state_2": float
    },
    "...": "...",
    "pathology_name_n": {
        "state_1": float,
        "state_2": float
    }
}

Response

A JSON object with absolute and percentage differences for each pathology in the following format:

{
    "pathology_name_1": {
        "absolute_diff": float,
        "percentage_diff": float
    },
    "...": "...",
    "pathology_name_n": {
        "absolute_diff": float,
        "percentage_diff": float
    }
}

Example

Input:

{
    "subretinal_fluid": {
        "state_1": 10.0,
        "state_2": 15.0
    },
    "soft_drusen": {
        "state_1": 8.0,
        "state_2": 12.0
    }
}

Output:

{
    "subretinal_fluid": {
        "absolute_diff": 5.0,
        "percentage_diff": 50.0
    },
    "soft_drusen": {
        "absolute_diff": 4.0,
        "percentage_diff": 50.0
    }
}