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 = GI

  • Extract coarse features from Fxy

  • Segment the brain image

    G1 = 12k=1ml=1nGklpkal2k=1+1Xl=1+1YTpk,ql2

  • Repeat until Fxyi=1Hj=1z[FxyiFxy(j)]

  • Update G1

  • Initialize cluster centroid

  • Define membership function skl0 of the FCM

  • Update cluster center Tkvsklv, (k = 1,2,… and v = 1,2,3)

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

  • With c(pk, δkv) until ||sklvsklv+1||  ,  =[0,1]