slmsuite.holography.analysis.image_areas#

image_areas(variances)[source]#

Given the output of image_variances(), return a measure of spot area for each moment triplet. The output of image_variances() contains the moments \(M_{20}\), \(M_{02}\), and \(M_{11}\). We return the determinant \(|M|\) which is a proxy for spot area.

Parameters:

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

Returns:

Array of areas for the given moments in an array of shape (image_count,).

Return type:

numpy.ndarray