radial_profile

hcipy.metrics.radial_profile(image, bin_size, statistic='mean')

Create a radial profile of the image around its center.

Parameters:
imageField

The image that we want a radial profile from. This image must be two-dimensional.

bin_sizescalar

The extent of each bin. Each bin will be a ring from r to r+`bin_size`.

statisticstring

The statistic to compute (default is ‘mean’). The following statistics are available: * ‘mean’: compute the mean of values for points within the bin edges. * ‘sum’: compute the sum of values for points within the bin edges. * ‘min’: compute the minimum of values for points within the bin edges. * ‘max’: compute the maximum of values for point within the bin edges.

Returns:
bin_centersarray_like

The center of each of the bins.

profilearray_like

The y-values of the resulting radial profile.

std_profilearray_like

The standard deviation within each bin.

num_per_binarray_like

The number of samples per bin.

Raises:
ValueError

If the statistic is not implemented.