Gaussian kernels: convert FWHM to sigma

匿名 (未验证) 提交于 2019-12-03 00:06:01

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/

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!