MKFILTER(1)					      MKFILTER(1)



NAME
       mkfilter - returns popular 2D convolution kernels

SYNOPSIS
       K = mkfilter(name)

PARAMETERS
       name   a	 string,  the  name  of	 the  filter mask. May be
	      'sobel' or

       K      a 2D array containing the convolution kernel.

DESCRIPTION
       mkfilter builds renowned 2D filter "masks" (kernels), such
       as  sobel,  prewitt, mean, etc. to be used together with a
       function	 such  as  imconv.  This  version  provides  only
       "sobel"	and  "prewitt" masks, but there will be others in
       the next release of the SIP toolbox.

EXAMPLE
       initial_dir = PWD;
       chdir (SIPDIR + 'examples');

       Img = imread('tru.jpg');
       Img = im2gray(Img);
       xbasc()
       imshow(Img);
       sob = mkfilter('sobel');	 // stamp effect
       A = imconv(Img, sob);
       xbasc()
       imshow(A, [])

       chdir(initial_dir);

REFERENCES
       "Processamento Digital de Imagens", O. M. Filho and H.  V.
       Neto, Brasport -- Rio de Janeiro, pp. 47-56.

       "Algorithms  for	 Image	Processing  and Computer Vision",
       J.R. Parker, Wiley, chapter 1.

AUTHORS
       Ricardo Fabbri <rfabbri@if.sc.usp.br>

AVAILABILITY
       The latest version of the Scilab Image Processing  toolbox
       can be found at

	      http://cyvision.if.sc.usp.br/~rfabbri/sip/

SEE ALSO
       imconv, edge



SIP Toolbox		   January 2002		      MKFILTER(1)
