This paper describes the iteration method of compensation for wave–front (WF) distortions by means of intensity measurements at each iteration step in two parallel planes located close to the focal one. The algorithm for the above–indicated WF compensation has been constructed for a segmented adaptive mirror based on the physical model of image formation. Its mathematical interpretation is given. For small WF distortions, the algorithm is demonstrated to satisfy the convergence conditions. Examples of numerical simulation of the problem of compensation for WF distortion by the given method are presented.