K-means clustering is an unsupervised clustering algorithm that partitions the pixels into groups/clusters. Here K is a positive integer number that denotes the number of clusters. Some criterion can be used to determine the value of K or it can be an input by the user. K-means algorithm is iterative in nature” [10][12].