Textile fabric defect detection based on low-rank representation