Skip to main content
. 2024 Mar 8;11(3):266. doi: 10.3390/bioengineering11030266
Algorithm 1: Improved FCM
Input: Gray level image
Output: Segmented image
  • ➢

    Set the number of intensity levels and compute a square matrix; I = ∑∑Gpi,qj, and the image matrix G = ∑∑Gpk,ql

  • ➢

    Initialize Fxy = G⊕I

  • ➢

    Extract coarse features from Fxy

  • ➢

    Segment the brain image

    G1 = 12∑k=1m∑l=1nGklpk−al2∗∑k=1+1X∑l=1+1YTpk,ql2

  • ➢

    Repeat until Fxy≤∑i=1H∑j=1z[Fxyi−Fxy(j)]

  • ➢

    Update G1

  • ➢

    Initialize cluster centroid

  • ➢

    Define membership function skl0 of the FCM

  • ➢

    Update cluster center Tkv⇔sklv, (k = 1,2,… and v = 1,2,3)

    Update D(pk, δkv) ⇔δkv and skl

  • ➢

    With c(pk, δkv) until ||sklv−sklv+1|| ≤ ∈, ∈ =[0,1]