Program computes the parameter of GMM model using EM algorithm,optimized parameter thus obtained are used to calculate probability of every pixel with respect to number of classes(for given example it is taken as k).And than maximum probabilty of every pixel with respect to all classes is computed, on the basis of this pixels are labeled.