A thermal-based defect classification method in textile fabrics with K-nearest neighbor algorithm. (March 2016)