Patent attributes
Excitation light is focused to a focus within a sample and the focus is scanned within a volume in the sample with scanning optical elements. Signal light emitted from the focus is de-scanned, with the one or more scanning optical elements, onto a wavefront sensor as the focus is scanned within the volume. Based on the descanned signal light, an average aberration created by the volume of the sample of a wavefront of the excitation light is determined. A wavefront of the excitation light is corrected by an amount according to the determined average aberration while the focus is scanned within the volume, the signal light is imaged onto a photosensitive detector as the focus is scanned within the volume, and a wavefront of the imaged signal light is corrected by an amount according to the determined average aberration while the focus is scanned. These steps can be repeated for a plurality of different volumes in the sample, and an image of the sample can be generated based on the detected signal light from scanned foci within the different volumes.