Statistics for Anomaly Detection in Textured Surfaces