A method for correcting color variations on the surface of a wafer, a method
for
selectively detecting a defect from different patterns, and computer readable recording
media for the same are provided. Color variations in images of different parts
of a wafer can be corrected using the mean and standard deviation of grey level
values for the pixels forming each of the different parts of the wafer. In addition,
different threshold values are applied to metal interconnect patterns and spaces
of the wafer so that a defect can be selectively detected from the different patterns.
Thus, a bridge known as a fatal, or killing defect to a semiconductor device can
be detected without also falsely detecting grains as fatal defects. Due to increased
defect screening capacity of the methods, the defect detecting method can be further
efficiently managed.