Introduction - If you have any usage issues, please Google them yourself
Efficient Graph-Based Image Segmentation,which is using clustering to segment image.The algorithm runs in time nearly linear in the number of graph edges and is also fast in practice