小言_互联网的博客

Gaussian kernels: convert FWHM to sigma

337人阅读  评论(0)

Gaussian kernels: convert FWHM to sigma

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 -xw and +xw 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 xw will produce :


For and solving for xw:

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.

原文链接:https://brainder.org/2011/08/20/gaussian-kernels-convert-fwhm-to-sigma/


转载:https://blog.csdn.net/syxzsyxz1/article/details/100859208
查看评论
* 以上用户言论只代表其个人观点,不代表本网站的观点或立场