Inheritance diagram for nipy.algorithms.kernel_smooth:
Linear filter(s). For the moment, only a Gaussian smoothing filter
Bases: object
A class to implement some FFT smoothers for Image objects. By default, this does a Gaussian kernel smooth. More choices would be better!
Methods
__call__ | |
smooth |
Parameters : | coordmap : CoordinateMap shape : sequence fwhm : float, optional
scale : float, optional
location : float
cov : None or array, optional
|
---|
Apply smoothing to inimage
Parameters : | inimage : Image
clean : bool, optional
is_fft : bool, optional
|
---|---|
Returns : | s_image : Image
|
Convert a FWHM value to sigma in a Gaussian kernel.
Parameters : | fwhm : array-like
|
---|---|
Returns : | sigma : array or float
|
Examples
>>> sigma = fwhm2sigma(6)
>>> sigmae = fwhm2sigma([6, 7, 8])
>>> sigma == sigmae[0]
True
Convert a sigma in a Gaussian kernel to a FWHM value
Parameters : | sigma : array-like
|
---|---|
Returns : | fwhm : array or float
|
Examples
>>> fwhm = sigma2fwhm(3)
>>> fwhms = sigma2fwhm([3, 4, 5])
>>> fwhm == fwhms[0]
True