slmsuite.holography.analysis.image_ellipticity_angle

image_ellipticity_angle(variances)[source]

Given the output of image_variances(), return the rotation angle of the scaled basis for each moment triplet. This is the angle between the \(x\) axis and the major axis (large eigenvalue axis).

Parameters

moment2 (numpy.ndarray) – The output of image_variances(). Shape (3, image_count).

Returns

Array of angles for the given moments. For highly circular spots, this angle is not meaningful, and dominated by experimental noise. For perfectly circular spots, zero is returned. Shape (image_count,).

Return type

numpy.ndarray