metrics - Strehl and Contrast

Functions

get_strehl_from_focal(img, ref_img)

Get the Strehl ratio from a focal-plane image.

get_strehl_from_pupil(aperture, ref_aperture)

Get the Strehl ratio from a pupil-plane electric field.

get_mean_intensity_in_roi(img, mask)

Get the mean intensity in a masked region of interest.

get_mean_raw_contrast(img, mask, ref_img)

Get the mean raw contrast in a masked region of interest.

binned_profile(y, x[, bins])

Create a profile of y(x) in the specified bins.

azimutal_profile(image, num_bins)

Create an azimuthal profile of the image around its center.

radial_profile(image, bin_size)

Create a radial profile of the image around its center.