Skip to main content
. 2021 Jul 29;11(8):1366. doi: 10.3390/diagnostics11081366
Algorithm 1. Preprocessing.
Ia = smoothening of image Is using Ambrosio-Tortorelli [58] minimizer
Ig = gray level of Ia
Lf = fast line detections using length threshold of 20
LenLf=size of detected Lf
if LenLf1
  create a 2-d kernel kbm based on the LenLf
     kbm=3×3 If 20 ≥ LenLf ≥ 1
     kbm=7×7 35 ≥ LenLf 20
     kbm=11×11 If 50 ≥ LenLf 35
     kbm=15×15 If LenLf 50
  Ibm = morphology blackhat of Ig using kbm
  Ibt = morphology binary threshold of Ibm
  Ip = fast marching inpaint [61] of Ibt
else
  Ip = initialize as Ia