slmsuite.holography.analysis.image_relative_strehl#

image_relative_strehl(images)[source]#

Computes a metric proportional to the Strehl ratio of a stack of images.

\[S = \frac{\max_{x,y} I}{\sum_{x,y} I}\]
Parameters:

images (numpy.ndarray) – A matrix in the style of the output of take(), with shape (image_count, h, w), where (h, w) is the width and height of the 2D images and image_count is the number of images. A single image is interpreted correctly as (1, h, w) even if (h, w) is passed.

Returns:

The relative Strehl ratio evaluated for every image. This is of size (image_count,) for provided images data of shape (image_count, h, w).

Return type:

numpy.ndarray