Statistical region merging
Computer Vision A Modern Approach