Create some 2D special filters
F = fspecial(type) F = fspecial(type, op1) F = fspecial(type, op1, op2)
fspecial
create some 2D special filters. If no
parameters are given, fspecial
will uses default
values.
The supported filters and the syntax for each filter type are listed in the following list:
F
.
F
is [ 1 2 1; 0 0 0; -1 -2 -1].F
.
F
is [ 1 1 1; 0 0 0; -1 -1 -1].hsize
.
hsize
can be a 1x2 vector which indicate the rows and columns of
F
. If
hsize
is a scalar,
F
is a square matrix. The default value for
hsize
is [3, 3]; the default value for
sigma
is 0.5.[alpha, 1-alpha, alpha; 1-alpha, -4, 1-alpha; alpha,
1-alpha, alpha]/(alpha+1)
. The default value for
alpha
is 0.2.hsize
.
hsize
can be a 1x2 vector which indicate the rows and columns of
F
. If
hsize
is a scalar,
F
is a square matrix. The default value for
hsize
is [5, 5]; the default value for
sigma
is 0.5.hsize
.
hsize
can be a 1x2 vector which indicate the rows and columns of
F
. If
hsize
is a scalar,
F
is a square matrix. The default value for
hsize
is [3, 3].alpha
must be in the range [0.0, 1.0]. The default value of
alpha
is 0.2.http://sivp.sf.net