1. A method of segmenting regions of an image comprising the steps of: determining a number of partitions based on a range of a histogram of the image; defining regions by the partitions; estimating a centroid of each region; assigning pixel data to the estimated centroids by assigning each pixel data point to its nearest centroid to form a plurality of clusters; estimating new centroids by taking the mean of each cluster; and, determining anchor points based on the new centroids.