Text this: A Contrast Adjustment Thresholding Method for Surface Defect Detection Based on Mesoscopy