Pattern recognition or classification using color