On the other hand, in the feature extraction method, the defect is detected by extracting the local image data from the whole scanned image data and analyzing the feature such as the width, the area, or the angle of the pattern under inspection or analyzing whether the pattern have certain characteristics.