Image Processing Toolbox    
fspecial

Create predefined filters

Syntax

Description

h = fspecial(type) creates a two-dimensional filter h of the specified type. (fspecial returns h as a computational molecule, which is the appropriate form to use with filter2.) type is a string having one of these values:

h = fspecial(type,parameters) accepts a filter type plus additional modifying parameters particular to the type of filter chosen. If you omit these arguments, fspecial uses default values for the parameters.

The following list shows the syntax for each filter type. Where applicable, additional parameters are also shown.

Example

Algorithms

fspecial creates Gaussian filters using

fspecial creates Laplacian filters using

fspecial creates Laplacian of Gaussian (LoG) filters using

fspecial creates averaging filters using

fspecial creates unsharp filters using

See Also

conv2, edge, filter2, fsamp2, fwind1, fwind2

del2 in the MATLAB Function Reference


 fsamp2 ftrans2