2D convolution
Outm = imconv(Img, mask [, form])
Outm. It assumes be one of the following values 'same' Outm has the same size as the original 'full' Outm contains the full convolution, (M+n-1) 'valid'Function imconv performs 2D spatial convolution of a grayscale image and a mask.
Img, using the sobel gradient estimator, 0.5 threshold level and in both horizontal and vertical directions.The other parameters are optional and non-positional. That is, they may be passed to the function by their name. The following example illustrates this.
http://siptoolbox.sourceforge.net