| CPC G06T 7/0006 (2013.01) [G06T 7/70 (2017.01); G06T 2207/10061 (2013.01); G06T 2207/20081 (2013.01); G06T 2207/30148 (2013.01); G06T 2207/30204 (2013.01)] | 20 Claims |

|
1. A method, comprising:
providing a wafer;
capturing a defect image of part of the wafer;
determining a first design pattern image based on a design pattern data;
overlapping the defect image with part of the first design pattern image;
determining a clipped image of the first design pattern image when matched pixels between the clipped image and the defect image are calculated as a maximum number;
generating a first reference image corresponding to the defect image based on the clipped image and a reference image generation model; and
generating a first defect marked image based on the defect image and the first reference image.
|