Supervised defect detection on textile fabrics via optimal Gabor filter | Synapse