code for Fabric Defect Inspection using Prior Knowledge Guided Least Squares Regression
-
'main.m' in the main folder is the main file.
-
'toolbox' includes functions called in our algorithm, such as patch segmentation, texton feature and saliency.
-
In addition, our implementation of RRSVD, wavelet and modified are in folder: 'wnn'.
-
Other methods, such as spectral residual and context-aware saliency detection are provided by authors.
-
input data: data\temp_7_27
-
output results: all_results
-
p.s. our running enveriment is MATLAB R2014b, then the paramater of 'bitshift.m' is different with old matlab version,please considering the valid paramater.