1. A method of optical inspection of a surface that is known to have a defect comprising the steps of: acquiring at least a first image of an at least first segment comprising a size of a periodic structure of the surface; acquiring at least a second image of an at least second segment comprising the size of the periodic structure of the surface; generating a superposition image by superimposing the first and the second images; comparing the superposition image with a reference image in order to detect a defect of the surface and, when no defect is found, iteratively selecting a complementary subset of images of the at least first and second segments to create a superposition image of the different selected subsets of images until it is determined that one of the selected subsets of images has the defect; and stopping the optical inspection when a defect is found.