k-means segmentation method test