FilterKernel#
Implementation of various volumetric filter kernels.
Filter Type#
Filter types defined by the ftype
key include:
Type |
Descrition |
---|---|
|
uniform averaging filter |
|
Gaussian filter |
|
Laplacian of Gaussian filter (LoG) |
|
Difference of Gaussians filter (DoG) |
|
Sphere filter |
|
Disk filter |
- filter_kernel(ftype='Gaussian', shape=(5, 5), radius=None, sigma=None, sigma2=None)[source]#
Creates a filter kernel of a special type
Arguments
- ftypestr
Filter type, see Filter Type.
- shapearray or tuple
Shape of the filter kernel.
- radiustuple or float
Radius of the kernel (if applicable).
- sigmatuple or float
Std for the first gaussian (if applicable).
- sigma2tuple or float
Std of a second gaussian (if present).
Returns
- kernelarray
Filter kernel.
- filter_kernel_2d(ftype='Gaussian', shape=(5, 5), sigma=None, sigma2=None, radius=None)[source]#
Creates a 2d filter kernel of a special type
Arguments
- ftypestr
Filter type, see Filter Type.
- shapearray or tuple
Shape of the filter kernel.
- radiustuple or float
Radius of the kernel (if applicable).
- sigmatuple or float
Std for the first gaussian (if applicable).
- sigma2tuple or float
Std of a second gaussian (if present).
Returns
- kernelarray
Filter kernel.
- filter_kernel_3d(ftype='Gaussian', shape=(5, 5, 5), sigma=None, sigma2=None, radius=None)[source]#
Creates a 3d filter kernel of a special type
Arguments
- ftypestr
Filter type, see Filter Type.
- shapearray or tuple
Shape of the filter kernel.
- radiustuple or float
Radius of the kernel (if applicable).
- sigmatuple or float
Std for the first gaussian (if applicable).
- sigma2tuple or float
Std of a second gaussian (if present).
Returns
- kernelarray
Filter kernel.