Statistical methods for visual defect metrology