Automatic image annotation applied to habitat classification