Statistics for Towards a Versatile System for the Visual Recognition of Surface Defects