Abstract:
A system capable of inspecting an article for defects, the system including: a patch comparator, configured to determine with respect to each of a plurality of reference patches in a reference image a similarity level, based on a predefined patch-similarity criterion and on a source patch defined in the reference image; an evaluation module, configured to rate each inspected pixel out of multiple inspected pixels of the inspection image with a representative score which is based on the similarity level of a reference patch associated with a reference pixel corresponding to the inspected pixel; a selection module, configured to select multiple selected inspected pixels based on the representative scores of the multiple inspected pixels; and a defect detection module, configured to determine a presence of a defect in the candidate pixel based on an inspected value of the candidate pixel and inspected values of the selected inspected pixels.