Skip to main content
. 2024 Feb 7;24(4):1092. doi: 10.3390/s24041092
Algorithm 3 Generation of Individual Image Features Using Custom Method
  • procedure GenerateManualFeatures (file)

  •     Read image I from file

  •     Adjust I and convert to binary images bw

  •     Label connected components in bw to L

  •     Extract properties of regions in L into s

  •     Find the largest region in s as circle

  •     Extract edge coordinates x, y from circle

  •     Calculate inscribed circle properties: R, cx, cy

  •     Calculate convex hull points x, y of circle

  •     Calculate circumscribed circle properties: center, radius

  •     Compute features: R, radius, radiusR, s(numer).Area, etc.

  •     return computed features as ManualFeatures

  • end procedure