Pātuhitia tēnei: Defect detection in repetitive fabric patterns