skued.snr_from_collection
- skued.snr_from_collection(images, fill_value=0.0)
Signal-to-noise ratio (SNR) on a per-pixel basis, for images in a collection. These images should represent identical measurements.
SNR is defined as \(snr = \mu/\sigma\) where \(\mu\) is the average pixel value and \(\sigma\) is the standard deviation of that pixel value.
This function operates in constant-memory; it is therefore safe to use on a large collection of images (>10GB).
- Parameters:
images (iterable of ndarray) – These images should represent identical measurements.
images
can also be a generator.fill_value (float, optional) – Division-by-zero results will be filled with this value.
- Returns:
snr – Pixelwise signal-to-noise ratio
- Return type:
~numpy.ndarray
See also
isnr
streaming signal-to-noise ratio