Vision system for automatic weed detection