Learn R Programming

FIACH (version 0.1.2)

gaussKernel: 1 dimensional Gaussian smoothing kernel

Description

This function produces a Gaussian smoothing kernel that can be used in separable convolution to smooth images.

Usage

gaussKernel(fwhm=8,ksize=5,voxsize=1)

Arguments

fwhm
Full width at half maximum of the kernel.
ksize
Size of kernel. Must be Odd
voxsize
Size of the voxel in the direction you wish to smooth in. If smoothing a non medical image leave voxsize as 1 unless anisotropic smoothing is required.

Value

Returns a Kernel

Examples

Run this code
ts.plot(gaussKernel(ksize=23,voxsize=1))

Run the code above in your browser using DataLab