Patent attributes
Methods and systems for detecting defects on a specimen are provided. One system includes an inspection subsystem configured to generate images of a specimen and one or more computer subsystems configured for detecting defect candidates on the specimen. Detecting the defect candidates includes identifying a patterned feature in a test image included in the images generated of the specimen. Detecting the defect candidates also includes, for at least one pixel in the test image located within the patterned feature, determining a difference between a characteristic of the at least one pixel and the characteristic of other pixels in the test image located within a predetermined window of the at least one pixel. In addition, detecting the defect candidates includes detecting a defect candidate at the at least one pixel based on the determined difference.