With clear or overcast sky, the background of an
image is uniform with the gray level histogram of an
image clearly showing two main modes, as shown in
Fig. 2. To this kind of images, which we shall call class
1, a global thresholding algorithm can be applied.
When the sky is partly clear and partly cloudy, the
background brightness varies as previously mentioned.