Skip to main content
. 2021 Jul 29;11(8):1366. doi: 10.3390/diagnostics11081366
Algorithm 2. GASISUK Algorithm.
Let Ip = preprocessed image (see Section 2.2.1)
Let ow and oh be the original width and height of Ip respectively
Let č = dominant color of Ip
If č>20, 20, 20
  Br = predominantly light
else
  Br = predominantly dark
if Br is predominantly light
  assume gamma factor gf of 0.75
  Iγ = gamma of Ip
  Iγg = gray of Iγ
  Iγt = binary threshold of Iγg
  Iγm = morphology opening of Iγt using a 7 × 7 matrix
  Iγb = initial segmentation using bitwise_AND of Iγm and Ip
  If Iγb == [0] … depicting black image
    Iγb = Ip
else
  assume gamma factor gf of 1.7
  Iγb = gamma of Ip
kp = keypoint features of Iγb using ORB
kpc = clustering of keypoint features using DBSCAN
Ci = contour sketch of clustered keypoints
Iγf1 = first-level contour filtering
  filter-off contours satisfying below characteristics
    ∗ contour is identified as inner contour
    ∗ contour has an area of less than 32.000
    ∗ width and height of contour less than minimum width (variable, value of 0.2ow or fixed value of 200) and minimum height (variable value of 0.2oh or fixed value of 200)
  morphology erosion of contours
Iγf2 = second-level contour filtering
  filter-off contours satisfying below characteristics
    ∗ ccontour has an area of less than 25.000
Is = segmented lesion image using filled mask of Iγf2