Module stats

Source
Expand description

Statistical properties of images.

Structs§

ChannelHistogram
A set of per-channel histograms from an image with 8 bits per channel.
CumulativeChannelHistogram
A set of per-channel cumulative histograms from an image with 8 bits per channel.
MinMax
A minimum and maximum value returned by min_max()

Functions§

cumulative_histogram
Returns per-channel cumulative histograms.
histogram
Returns a vector of per-channel histograms.
min_max
Returns the minimum and maximum values per channel in an image.
peak_signal_to_noise_ratio
Returns the peak signal to noise ratio for a clean image and its noisy approximation. All channels are considered equally. If you do not want this (e.g. if using RGBA) then change image formats first. See also peak signal-to-noise ratio (wikipedia).
percentile
Returns the pth percentile of the pixel intensities in an image.
root_mean_squared_error
Returns the square root of the mean of the squares of differences between all subpixels in left and right. All channels are considered equally. If you do not want this (e.g. if using RGBA) then change image formats first.