get_mean_intensity_in_roi

hcipy.metrics.get_mean_intensity_in_roi(img, mask)

Get the mean intensity in a masked region of interest.

Parameters:
imgField or array_like

The focal-plane image.

maskField or array_like

A binary array describing the region of interest.

Returns:
scalar

The mean intensity in the region of interest.