A system for automatic image categorization