Skip to main content
. 2023 Feb 18;13(4):775. doi: 10.3390/diagnostics13040775
Algorithm 1 FCM for Segmentation.
  • 1.
    The fuzzy membership matrix Uij in Equation (7) is randomly initialised by satisfying the constraint.
    i=1cUij=1,1jn,Uij[0,1] (9)
  • 2.

    Calculate centroids by using Equation (8).

  • 3.

    By using Equation (6), calculate the dissimilarity between data points and centroids and continue until its improvement over previous iteration is below a threshold.

  • 4.

    Calculate new fuzzy membership matrix Uij by using Equation (7) and proceed to step 2.