A method of detecting sky in a digital color image having pixels is
disclosed. The method includes identifying pixels from the digital color
image representing an initial sky region; developing a model based on the
identified sky pixels, wherein such model is a mathematical function that
has inputs of pixel position and outputs of color; and using the model to
operate on the digital color image to classify additional pixels not
included in the initial sky region as sky.