prtools.ee#

ee(a, energy=0.8, center=None)[source]#

Compute the encircled energy diameter for a given energy fraction.

Parameters:
  • a (array_like) – Input array

  • energy (float or array_like, optional) – Encircled energy fraction (0 < energy < 1). Default is 0.8. Can also be a vector.

  • center ((2,) array_like or None) – Coordinates of center of circle given as (row, col). If None (default), the center coordinates are computed as the centroid of a.

Returns:

  • diam (float or ndarray) – Diameter in pixels of circle enclosing specified energy fraction.

  • ee (float or ndarray) – Encircled energy at computed diameter.