Anomaly Detection in Textured Surfaces