1. A method programmed in a non-transitory memory of a device comprising: a. acquiring an image; and b. performing image segmentation on the image in a color space and brightness space simultaneously.