The process is repeated: each pixel is assigned to the closest mean in multidimensional attribute space, and new means are calculated for each cluster based on the membership of pixels from the iteration. The number of iterations of the process through {number_iterations} can be specified. This value should be large enough to ensure that, after running the specified number of iterations, the migration of pixels from one cluster to another is minimal; therefore, all the clusters become stable. When increasing the number of clusters, the {number_iterations} should also increase.