View full-text article in PMC Diagnostics (Basel). 2021 Dec 23;12(1):22. doi: 10.3390/diagnostics12010022 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 2. RNFL segmentation by firstly computing its region of interest. 1:function RNFL(gradImg,B1,par) 2: BW1=rmvRegAboveLine(B1,par.AbvWidth) 3: BW0=rmvRegBelowLine(B1,par.BlwWidth) 4: BW=BW0⨂BW1 5: gradImg=getGradientMap(imgPad,brightToDark) 6: ROI=gradImg⨂BW 7: [B2,Y]=getSegBoundary(ROI) 8: return[B2,BW] 9:end function