A method for detecting an object in an image includes calculating a log L
likelihood of pairs of pixels at select positions in the image that are
derived from training images. The calculated log L likelihood of the
pairs of pixels is compared with a threshold value. The object is
detected when the calculated log L likelihood is greater than the
threshold value.