{'fraction_non_alphanumeric': 0.01950078003120125, 'fraction_numerical': 0.0, 'mean_word_length': 5.383084577114428, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Modal processing of Hartmann and Shack-Hartmann patterns by means of a least squares fitting of the transverse aberrations.

Instead of measuring the wavefront deformations, Hartmann and Shack-Hartmann tests measure wavefront slopes, which are equivalent to ray transverse aberrations. Numerous integration methods have been described in the literature to obtain the wavefront deformations from these measurements. Basically, they can be classified in two different categories, i.e., modal and zonal. Frequently, a least squares fit of the transverse aberrations in the x direction and a least squares fit of the transverse aberrations in the y direction is performed to obtain the wavefront. In this work, we briefly describe a modal method to integrate Hartmann and Shack-Hartmann patterns by means of a single least squares fit of the transverse aberrations simultaneously instead of the traditional x-y separate method. The proposed method uses monomial calculation instead of using Zernike polynomials, to simplify numerical calculations. Later, a method is proposed to convert from monomials to Zernike polynomials. An important obtained result is that if polar coordinates are used, angular transverse aberrations are not actually needed to obtain all wavefront coefficients.