The purpose of this study was to evaluate the performance of a bimorph deformable mirror from AOptix, inserted into an adaptive optics system designed for in-vivo retinal imaging at high resolution. We wanted to determine its suitability as a wavefront corrector for vision science and ophthalmological instrumentation. We presented results obtained in a closed-loop system, and compared them with previous open-loop performance measurements. Our goal was to obtain precise wavefront reconstruction with rapid convergence of the control algorithm. The quality of the reconstruction was expressed in terms of root-mean-squared wavefront residual error (RMS), and number of frames required to perform compensation. Our instrument used a Hartmann-Shack sensor for the wavefront measurements. We also determined the precision and ability of the deformable mirror to compensate the most common types of aberrations present in the human eye (defocus, cylinder, astigmatism and coma), and the quality of its correction, in terms of maximum amplitude of the corrected wavefront. In addition to wavefront correction, we had also used the closed-loop system to generate an arbitrary aberration pattern by entering the desired Hartmann-Shack centroid locations as input to the AO controller. These centroid locations were computed in Matlab for a user-defined aberration pattern, allowing us to test the ability of the DM to generate and compensate for various aberrations. We conclude that this device, in combination with another DM based on Micro-Electro Mechanical Systems (MEMS) technology, may provide better compensation of the higher-order ocular wavefront aberrations of the human eye.