Shack–Hartmann wavefront sensor
A Shack–Hartmann (or Hartmann–Shack) wavefront sensor (SHWFS) is an optical detector used for measuring electromagnetic wavefronts. It is a wavefront sensor commonly used in adaptive optics systems and as a non-interferometric metrology tool. It consists of an array of lenses (called lenslets) of the same focal length. Each is focused onto a photon sensor (typically a CCD array or CMOS array or quad-cell). The SHWFS samples wavefronts using lenslet arrays to estimate centroids of the image formed referred to as a spot field. If the sensor is placed at the geometric focal plane of the lenslet, and is uniformly illuminated, then, the integrated gradient of the wavefront across the lenslet is proportional to the displacement of the centroid. Wavefronts that contain distortion are detected by the displacement of the spots on the spot field allowing for a complete reconstruction of the wavefront. SHWFS is unable to detect discontinuous steps in the wavefront since it is measuring distortion in a wavefront.