1. A method comprising: receiving a set of focal stack images; images; grouping each of a plurality of pixels for which the focal measure was calculated into a plurality of super pixels; calculating a focal measure for each of a plurality of the super pixels; segmenting a respective focal stack image based on the focal measures of the plurality of super pixels; calculating a color probability for respective super pixels; and segmenting the respective focal stack image based on the color probability of respective super pixels.