“…Next, for segmenting ILM and RPEDC layer boundaries, we use the dark-to-light vertical gradient to compute edge weight w 1 (a, b) according to Formula (7) where I dla and I dlb are the dark-to-light vertical gradients at nodes a and b, respectively, i a and i b are the intensity value at nodes a and b, respectively, λ s = 0.1 is a constant, w min = 1 × 10 −5 is the minimum constant which increases the stability of the algorithm, '0' indicates the nodes a and b are disconnected. To segment BM layer boundary, we use the light-to-dark vertical gradient to compute edge weights w 2 (a, b) according to formula (8). Where I lda and I ldb are the light-to-dark vertical gradients at nodes a and b, respectively, y a and y b are the y coordinates of nodes a and b, respectively, w v = 1 is a constant to keep the BM layer boundary flat, '0' indicates the nodes a and b are disconnected.…”