1. A method comprising: identifying a color similarity shared by first neighboring regions of among a plurality of regions of an image, the plurality of regions including the first neighboring regions and second neighboring regions; merging the first neighboring regions based on the identifying of the color similarity and based on a heuristic algorithm, the merging of the first neighboring regions being performed by a processor of a machine; and merging the second neighboring regions of the plurality of regions of the image based on sizes of the second neighboring regions transgressing a threshold number of pixels.