Automatic detection of adverse weather conditions in traffic scenes