Plant leaf segmentation using k-means