Samiksha Jaiswal (Editor)

Signal to noise ratio (imaging)

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

The signal-to-noise ratio (SNR) is used in imaging as a physical measure of the sensitivity of a (digital or film) imaging system. Industry standards measure SNR in decibels (dB) of power and therefore apply the 10 log rule to the "pure" SNR ratio (a ratio of 1:1 yields 0 decibels, for instance). In turn, yielding the "sensitivity." Industry standards measure and define sensitivity in terms of the ISO film speed equivalent; SNR:32.04 dB = excellent image quality and SNR:20 dB = acceptable image quality.

Contents

Definition of SNR

Traditionally, SNR has been defined as the ratio of the average signal value μ s i g to the standard deviation σ b g of the background:

S N R = μ s i g σ b g

However, when presented with a high-contrast scene, many imaging systems clamp the background to uniform black, forcing σ b g to zero, artificially making the SNR infinite. In this case a better definition of SNR is the ratio of the average signal value μ s i g to the standard deviation of the signal σ s i g :

S N R = μ s i g σ s i g

which gives a meaningful result in the presence of clamping.

Explanation

The line data is gathered from the arbitrarily defined signal and background regions and input into an array (refer to image to the right). To calculate the average signal and background values, a second order polynomial is fitted to the array of line data and subtracted from the original array line data. This is done to remove any trends. Finding the mean of this data yields the average signal and background values. The net signal is calculated from the difference of the average signal and background values. The RMS or root mean square noise is defined from the background region. Finally, SNR is determined as the ratio of the net signal to the RMS noise.

Polynomial and coefficients

  • The second order polynomial is calculated by the following double summation.

  • f i = j = 0 m i = 1 n a j x i j

  • f = output sequence
  • m = the polynomial order
  • x = the input sequence (array/line values) from the signal region or background region, respectively.
  • n = the number of lines
  • a j = the polynomial fit coefficients
  • The polynomial fit coefficients can thus be calculated by a system of equations.

  • [ 1 x 1 x 1 2 1 x 2 x 2 2 1 x n x n 2 ] [ a 2 a 1 a 0 ] = [ f 1 f 2 f n ]

  • Which can be written...

  • [ n x i x i 2 x i x i 2 x i 3 x i 2 x i 3 x i 4 ] [ a 2 a 1 a 0 ] = [ f i f i x i f i x i 2 ]

  • Computer software or rigorous row operations will solve for the coefficients.
  • Net signal, signal, and background

    The second-order polynomial is subtracted from the original data to remove any trends and then averaged. This yields the signal and background values:

    μ sig = i = 1 n ( X i f i ) n μ bkg = i = 1 n ( X i f i ) n

    where

  • μ sig = average signal value
  • μ bkg = average background value
  • n = number of lines in background or signal region
  • X i = value of the ith line in the signal region or background region, respectively.
  • f i = value of the ith output of the second order polynomial.
  • Hence, the net signal value is determined by:

    signal = μ sig μ bkg .

    RMS noise and SNR

  • The RMS Noise is defined as the square root of the mean of variances from the background region.
  • RMS noise = i = 1 n ( X i i = 1 n X i n ) 2 n

    The SNR is thus given by

    SNR = signal RMS noise

    Using the industry standard 20 log rule...

    SNR = 20 log 10 signal RMS noise dB

    References

    Signal-to-noise ratio (imaging) Wikipedia