The accurate determination of the beam quality factor M2 is essential for characterizing laser systems. Traditional M2 meters, which rely on measuring the beam diameter at multiple planes along the propagation axis, are often bulky, slow, and require mechanical scanning. This work presents a robust and rapid method for M2 calculation using a microlens array with a CCD, simultaneously measuring the phase and intensity distributions.
A novel algorithm was developed to compute the M2 factor from a single wavefront measurement. The methodology processes the sensor's sub-aperture data to extract the intensity map and the Zernike polynomial coefficients representing the wavefront. Two distinct computational paths are implemented to handle different beam types: one for truncated beams and another for non-truncated (near-Gaussian) beams. For non-truncated beams, the algorithm decouples the effect of defocus to accurately reconstruct the beam's near-field and far-field intensity distributions via Fourier propagation. Beam diameters are calculated using the second-moment method with specific intensity thresholds (0% for full-aperture and 5% of peak intensity for truncated beams) to ensure robust results. For truncated beams, the algorithm normalizes the measured waist to an ideal Gaussian reference.
The performance of the developed system was evaluated against a commercial scanning-slit M2 meter. For a non-truncated HeNe laser, our sensor measured M² values of M²_x = 1.12 ± 0.02 and M²_y = 1.09 ± 0.02, showing excellent agreement with the reference meter's values of 1.11 ± 0.01. The calculated beam divergence angles 0.52 mrad, 0.51 mrad and waist locations were also consistent with theoretical predictions. For a significantly truncated beam, the algorithm successfully yielded a higher M² of ~2.5, a value not directly measurable by the standard meter without complex analysis. The results confirm the algorithm's ability to accurately compute the M2 factor and its propagation parameters, providing a powerful, single-shot diagnostic tool.