The ratio between an image A and an image B is calculated as the comparison result of the images A and B obtained from a pair of optical images. The variance is then calculated in order to evaluate the statistical fluctuation of the ratio obtained for each pixel. The fluctuation due to the variance is evaluated for each phase difference while the phase between the image A and the image B is shifted. The phase difference detection is performed on the basis of the evaluation result of the fluctuation.
展开▼