1. A method, comprising: generating saliency thresholds from a saliency map of an image that includes foreground regions of the image; applying one or more constraints that distinguish the foreground regions in the image; and detecting one or more of the foreground regions of the image based on the saliency thresholds and the one or more constraints.