A scanning ophthalmoscope for scanning the retina of an eye comprising: a source of collimated light and a scanning device comprising a first scanning element and a second scanning element, wherein axes of the first scanning element and the second scanning element are arranged to provide a two-dimensional collimated light scan, in the form of a two-dimensional scan pattern, of the collimated light from a single point in space; and a scan transfer device comprising a first focus at which the single point in space is provided and a second focus at which an eye may be accommodated, and wherein the scan transfer device transfers the two-dimensional collimated light scan from the single point in space into the eye; an optical coherence tomography, OCT, system comprising a radiation source and an optical system that together provide OCT reference and sample beams where the OCT sample beam propagates along at least part of the same optical path of the light emitted by the collimated light source and propagating through the scan transfer device; and an aberration compensator arranged to automatically compensate for systematic aberrations and changes in wavefront of the OCT sample beam introduced by the scanning device and scan transfer device as a function of scan angle, wherein the aberration compensator comprises a wavefront coding means arranged to alter the wavefront of illumination emitted by the radiation source synchronously with a scanning of the OCT sample beam to compensate for the systematic aberrations and changes in wavefront introduced by the scanning elements (14, 16) and scan transfer device as a function of scan angle, and the wavefront coding means comprises: a variable focus element arranged to provide focal control of the illumination emitted by the radiation source, characterised in that the wavefront coding means further comprises: a variable magnification stage arranged to optimise a diameter of the OCT sample beam at any point in a scan field. a source of collimated light and a scanning device comprising a first scanning element and a second scanning element, wherein axes of the first scanning element and the second scanning element are arranged to provide a two-dimensional collimated light scan, in the form of a two-dimensional scan pattern, of the collimated light from a single point in space; and a scan transfer device comprising a first focus at which the single point in space is provided and a second focus at which an eye may be accommodated, and wherein the scan transfer device transfers the two-dimensional collimated light scan from the single point in space into the eye; an optical coherence tomography, OCT, system comprising a radiation source and an optical system that together provide OCT reference and sample beams where the OCT sample beam propagates along at least part of the same optical path of the light emitted by the collimated light source and propagating through the scan transfer device; and an aberration compensator arranged to automatically compensate for systematic aberrations and changes in wavefront of the OCT sample beam introduced by the scanning device and scan transfer device as a function of scan angle, wherein the aberration compensator comprises a wavefront coding means arranged to alter the wavefront of illumination emitted by the radiation source synchronously with a scanning of the OCT sample beam to compensate for the systematic aberrations and changes in wavefront introduced by the scanning elements (14, 16) and scan transfer device as a function of scan angle, and the wavefront coding means comprises: a variable focus element arranged to provide focal control of the illumination emitted by the radiation source, characterised in that the wavefront coding means further comprises: a variable magnification stage arranged to optimise a diameter of the OCT sample beam at any point in a scan field. a variable focus element arranged to provide focal control of the illumination emitted by the radiation source, characterised in that the wavefront coding means further comprises: a variable magnification stage arranged to optimise a diameter of the OCT sample beam at any point in a scan field.