When smoothing images and functions using Gaussian kernels, often we have to convert a given value for the full width at the half maximum (FWHM) to the standard deviation of the filter (sigma, ). This happens because the implementation generally is in terms of sigma, while the FWHM is the more popular parameter in certain areas. The conversion is trivial, but it may well worth write it up here.
The probability density function (pdf) for the Gaussian distribution with mean and standard deviation is:
If the filter is centered at the origin, the mean is 0 and the FWHM is the distance between the and that produces the half of the peak. For the normal distribution, the mean is the same as the mode (peak) and we have then to find the that will produce :
For and solving for :
The FWHM is :
Which gives 2.35482004503 as the conversion factor, i.e., .
Some software packages, such as SPM and FreeSurfer, interact with the user in terms of FWHM, whereas others, such as FSL, prefer . The relation above allows converting quickly between one and other representation.