azimutal_profile

hcipy.metrics.azimutal_profile(image, num_bins, statistic='mean')

Create an azimuthal profile of the image around its center.

Parameters
imageField

The image that we want an azimuthal profile from. This image must be two-dimensional.

num_binsinteger

The number of bins in theta. Bins will be equally distributed in theta.

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 azimuthal profile.

std_profilearray_like

The standard deviation within each bin.

num_per_binarray_like

The number of samples per bin.

Raises
RuntimeError

If the number of bins are negative or zero.

ValueError

If the statistic is not implemented.