1. A method, comprising: initializing cluster centers of an image using a processor, wherein the image comprises a plurality of pixels; labeling pixels of the plurality of pixels in a pattern using the processor; and recomputing, using the processor, the cluster centers based on the labeling of the plurality of pixels.