Skip to main content

Dataset of Fully-labeled Diabetic Macular Edema OCT B-scans (associated with fluid and layer annotations)

 The dataset was gathered using Heidelberg Eye Explorer (HEYEX) version 5.1 (Heidelberg Engineering, Heidelberg, Germany) by a trained technician with an automatic real-time (ART) function for image averaging and an activated eye tracker in a room with normal light. For macular volumes, 4 radial B-Scans (each with 512 A-Scans, with ART of 9 frames, axial resolution of 3.8 mm) with a scanning area of 6 mm × 6 mm focusing on the fovea were taken. The DME group’s age were between 57 and 84 (Mean (± SD) = 68.11(± 8.58)) and 74 per cent of them were female. Protocols of the current investigation were approved by the Ethics Committee at Isfahan University of Medical Sciences (IR.MUI.RESEARCH.REC.1398.155). This study was carried out in accordance to the tenets of the Declaration of Helsinki and informed consent was obtained from all the patients.

Download Data


Supplementary Note
Here, we bring a concise explanation for how the Livelayer algorithm should be applied over the intended image by the user. Explanations regarding other parts of the proposed software are provided in the supplementary video file.
First of all, the user should choose the desired dataset as the software’s input which could be of three various file formats (i.e. .mat, .vol or .octbin) on the left hand side of the “File” tab. In the “Auto Layer Segmentation” tab which embodies the Livelayer method, he should click on the initial pixel of the desired path and move the mouse along that path, waiting for the live-wire to displays the smallest cost path based on the brightness of pixels in the original image. The user should then drag the mouse on the path so as to discover a route that nicely fits that path and pause the live-wire by clicking on, whenever he observes that the route has become inappropriate. He could resume by clicking on the previous pixel beside the last one and this process proceeds until the entire path is acquired. Finally, the attained boundaries are passed through a smoothing stage and are plotted on each B-Scan while their corresponding coordinates are saved in a “.mat” file, altogether forming the software’s main output. The semi-automatic fluid segmentation section requires the same procedures that are clarified for the Livelayer method and outputs all the segmented fluids’ coordinates along with their mask images (a black background image in which the segmented fluids are presented as white objects).


*Please see the following video for more information about Livelayer: 

Download Video


*The codes used for applying Livelayer (A Semi-Automatic Software Program for Segmentation of Layers and Diabetic Macular Edema in OCT Images described in the above paper) can be downloaded from


*Please reference the following paper if you would like to use any part of this dataset or method:

Montazerin M, Sajjadifar Z, Khalili Pour E, Riazi-Esfahani H, Mahmoudi T, Rabbani H, Movahedian H, Dehghani A, Akhlaghi M, Kafieh R. Livelayer: a semi-automatic software program for segmentation of layers and diabetic macular edema in optical coherence tomography images. Sci Rep. 2021 Jul 2;11(1):13794. doi: 10.1038/s41598-021-92713-y. PMID: 34215763; PMCID: PMC8253852.