mednet.data.segment.drionsdb

DRIONS-DB (training set) for Optic Disc Segmentation.

The dataset originates from data collected from 55 patients with glaucoma (23.1%) and eye hypertension (76.9%), and random selected from an eye fundus image base belonging to the Ophthalmology Service at Miguel Servet Hospital, Saragossa (Spain). It contains 110 eye fundus images with a resolution of 600 x 400. Two sets of ground-truth optic disc annotations are available. The first set is commonly used for training and testing. The second set acts as a “human” baseline.

  • Reference: [CRGFMdlC08]

  • Original resolution (height x width): 400 x 600

  • Configuration resolution: 416 x 608 (after padding)

  • Split reference: [MPTAVG16]

  • Protocols expert1 (baseline) and expert2 (human comparison):

    • Training samples: 60

    • Test samples: 50

This module contains the base declaration of common data modules and raw-data loaders for this database. All configured splits inherit from this definition.

Module Attributes

DATABASE_SLUG

Pythonic name to refer to this database.

CONFIGURATION_KEY_DATADIR

Key to search for in the configuration file for the root directory of this database.

Classes

DataModule(split_path)

DRIONS-DB (training set) for Optic Disc Segmentation.

RawDataLoader()

A specialized raw-data-loader for the drionsdb dataset.

mednet.data.segment.drionsdb.DATABASE_SLUG = 'drionsdb'

Pythonic name to refer to this database.

mednet.data.segment.drionsdb.CONFIGURATION_KEY_DATADIR = 'datadir.drionsdb'

Key to search for in the configuration file for the root directory of this database.

class mednet.data.segment.drionsdb.RawDataLoader[source]

Bases: RawDataLoader

A specialized raw-data-loader for the drionsdb dataset.

datadir: Path

This variable contains the base directory where the database raw data is stored.

sample(sample)[source]

Load a single image sample from the disk.

Parameters:

sample (Any) – A tuple containing path suffixes to the sample image, target, and mask to be loaded, within the dataset root folder.

Return type:

Mapping[str, Any]

Returns:

The sample representation.

target(sample)[source]

Load only sample target from its raw representation.

Parameters:

sample (Any) – A tuple containing the path suffix, within the dataset root folder, where to find the image to be loaded, and an integer, representing the sample target.

Return type:

Tensor

Returns:

The label corresponding to the specified sample, encapsulated as a torch float tensor.

class mednet.data.segment.drionsdb.DataModule(split_path)[source]

Bases: CachingDataModule

DRIONS-DB (training set) for Optic Disc Segmentation.

Parameters:

split_path (Path | Traversable) – Path or traversable (resource) with the JSON split description to load.