An optical apparatus is comprising an optical imaging arrangement generating either an image of the original object field or the field of the original sample at the pupil plane which consist of both amplitude and phase information. The apparatus is further comprising a digital adaptive optics arrangement with a wave front sensor and a computing unit, which is adapted to generate at least one orthogonally translated digital copy of the original sample object field at the spatial Fourier or pupil plane and to analytically calculate a wave front error based on the phase difference between the original sample wave front and its digital copy or copies.