Signal to Noise Ratio (SNR)ΒΆ

Module for calculating the signal-to-noise ratio (SNR) for an image.

Examples

>>> import numpy as np
>>> from viqa import SNR
>>> img = np.random.rand(256, 256)
>>> snr = SNR(data_range=1, normalize=False)
>>> snr
SNR(score_val=None)
>>> score = snr.score(img,
...                   signal_center=(32, 32),
...                   radius=16)

Functions

signal_to_noise_ratio(img, signal_center, radius)

Calculate the signal-to-noise ratio (SNR) for an image.

Classes

SNR([data_range, normalize])

Class to calculate the signal-to-noise ratio (SNR) for an image.