slmsuite.holography.analysis

Helper functions for processing images.

Functions

blob_array_detect

Detect an array of spots and return the orientation as an affine transformation.

blob_detect

Detect blobs in an image.

fit_affine

For two sets of points with equal length, find the best-fit affine transformation that transforms from the first basis to the second.

get_orientation_transformation

Compile a transformation lambda from simple rotates and flips.

image_ellipticity

Given the output of image_variances(), return a measure of spot ellipticity for each moment triplet.

image_ellipticity_angle

Given the output of image_variances(), return the rotation angle of the scaled basis for each moment triplet.

image_fit

Fit each image in a stack of images to a 2D function.

image_moment

Computes the given moment \(M_{m_xm_y}\) for a stack of images.

image_normalization

Computes the zeroth order moments, equivalent to spot mass or normalization, for a stack of images.

image_normalize

Normalizes of a stack of images via the the zeroth order moments.

image_positions

Computes the two first order moments, equivalent to spot position relative to image center, for a stack of images.

image_remove_field

Zeros the field of a stack of images such that moment calculations will succeed.

image_variances

Computes the three second order central moments, equivalent to variance, for a stack of images.

take

Crop integration regions around an array of vectors, yielding an array of images.

take_plot

Plots non-integrated results of take() in a square array of subplots.