•Initialize: Each pixel is a region with color of that pixel and neighbors = neighboring pixels.
•Loop
–Find adjacent two regions with most similar color.
–Merge to form new region with:
•all pixels of these regions
•average color of these regions.
•All neighbors of either region.
–Stopping condition:
•No regions similar
•Find k regions.
•