A wavefront aberration compensating apparatus, including: a deformable mirror which compensates a wavefront aberration of a light flux and includes electrodes, and a thin-film mirror which changes a configuration thereof in accordance with a voltage value applied to each of the electrodes; an optical system provided with the deformable mirror and including an object subjected to aberration compensation; a wavefront sensor which measures the wavefront aberration of the light flux; a memory which stores therein a voltage template provided for each expansion mode according to a polynomial of wavefront aberration, as a voltage alignment data for the electrodes which induces the corresponding expansion mode; and a controller configured to determine a superposition amplitude value of each of the expansion modes and calculate the voltage value applied to each of the electrodes by using the voltage templates stored such that the wavefront aberration obtained by the wavefront sensor becomes a desired aberration, and to repeat compensation of the configuration of the thin-film mirror on the basis of the calculated voltage value, such that the wavefront aberration of the light flux measured by the wavefront sensor is suppressed.
Wavefront aberration compensating apparatus and ophthalmologic unit having the same