IM: Kernel Generators

IM - An Imaging Tool

Kernel Generators
[Convolution Operations]


Detailed Description

Creates several known kernels
See im_kernel.h


Functions

imImageimKernelSobel (void)
imImageimKernelPrewitt (void)
imImageimKernelKirsh (void)
imImageimKernelLaplacian4 (void)
imImageimKernelLaplacian8 (void)
imImageimKernelLaplacian5x5 (void)
imImageimKernelLaplacian7x7 (void)
imImageimKernelGradian3x3 (void)
imImageimKernelGradian7x7 (void)
imImageimKernelSculpt (void)
imImageimKernelMean3x3 (void)
imImageimKernelMean5x5 (void)
imImageimKernelCircularMean5x5 (void)
imImageimKernelMean7x7 (void)
imImageimKernelCircularMean7x7 (void)
imImageimKernelGaussian3x3 (void)
imImageimKernelGaussian5x5 (void)
imImageimKernelBarlett5x5 (void)
imImageimKernelTopHat5x5 (void)
imImageimKernelTopHat7x7 (void)
imImageimKernelEnhance (void)

Function Documentation

imImage* imKernelSobel void   ) 
 

Creates a kernel with the following values:

   1  2  1
   0  0  0
  -1 -2 -1

im.KernelSobel() -> kernel: imImage [in Lua 5] 

imImage* imKernelPrewitt void   ) 
 

Creates a kernel with the following values:

   1  1  1
   0  0  0
  -1 -1 -1

im.KernelPrewitt() -> kernel: imImage [in Lua 5] 

imImage* imKernelKirsh void   ) 
 

Creates a kernel with the following values:

   5  5  5
  -3  0 -3
  -3 -3 -3

im.KernelKirsh() -> kernel: imImage [in Lua 5] 

imImage* imKernelLaplacian4 void   ) 
 

Creates a kernel with the following values:

   0 -1  0 
  -1  4 -1 
   0 -1  0 

im.KernelLaplacian4() -> kernel: imImage [in Lua 5] 

imImage* imKernelLaplacian8 void   ) 
 

Creates a kernel with the following values:

  -1 -1 -1 
  -1  8 -1 
  -1 -1 -1 

im.KernelLaplacian8() -> kernel: imImage [in Lua 5] 

imImage* imKernelLaplacian5x5 void   ) 
 

Creates a kernel with the following values:

   0 -1 -1 -1  0
  -1  0  1  0 -1
  -1  1  8  1 -1
  -1  0  1  0 -1
   0 -1 -1 -1  0

im.KernelLaplacian5x5() -> kernel: imImage [in Lua 5] 

imImage* imKernelLaplacian7x7 void   ) 
 

Creates a kernel with the following values:

  -1 -1 -1 -1 -1 -1 -1
  -1 -1 -1 -1 -1 -1 -1
  -1 -1 -1 -1 -1 -1 -1
  -1 -1 -1 48 -1 -1 -1
  -1 -1 -1 -1 -1 -1 -1
  -1 -1 -1 -1 -1 -1 -1
  -1 -1 -1 -1 -1 -1 -1

im.KernelLaplacian7x7() -> kernel: imImage [in Lua 5] 

imImage* imKernelGradian3x3 void   ) 
 

Creates a kernel with the following values:

  0 -1 0  
  0  1 0  
  0  0 0  

im.KernelGradian3x3() -> kernel: imImage [in Lua 5] 

imImage* imKernelGradian7x7 void   ) 
 

Creates a kernel with the following values:

   0 -1 -1  0  1  1  0
  -1 -2 -2  0  2  2  1
  -1 -2 -3  0  3  2  1
  -1 -2 -3  0  3  2  1
  -1 -2 -3  0  3  2  1
  -1 -2 -2  0  2  2  1
   0 -1 -1  0  1  1  0

im.KernelGradian7x7() -> kernel: imImage [in Lua 5] 

imImage* imKernelSculpt void   ) 
 

Creates a kernel with the following values:

  -1 0 0 
   0 0 0 
   0 0 1 

im.KernelSculpt() -> kernel: imImage [in Lua 5] 

imImage* imKernelMean3x3 void   ) 
 

Creates a kernel with the following values:

  1 1 1 
  1 1 1 
  1 1 1 

im.KernelMean3x3() -> kernel: imImage [in Lua 5] 

imImage* imKernelMean5x5 void   ) 
 

Creates a kernel with the following values:

  1 1 1 1 1 
  1 1 1 1 1 
  1 1 1 1 1 
  1 1 1 1 1 
  1 1 1 1 1 

im.KernelMean5x5() -> kernel: imImage [in Lua 5] 

imImage* imKernelCircularMean5x5 void   ) 
 

Creates a kernel with the following values:

  0 1 1 1 0 
  1 1 1 1 1 
  1 1 1 1 1 
  1 1 1 1 1 
  0 1 1 1 0 

im.KernelMean5x5() -> kernel: imImage [in Lua 5] 

imImage* imKernelMean7x7 void   ) 
 

Creates a kernel with the following values:

  1 1 1 1 1 1 1 
  1 1 1 1 1 1 1 
  1 1 1 1 1 1 1 
  1 1 1 1 1 1 1 
  1 1 1 1 1 1 1 
  1 1 1 1 1 1 1 
  1 1 1 1 1 1 1 

im.KernelMean7x7() -> kernel: imImage [in Lua 5] 

imImage* imKernelCircularMean7x7 void   ) 
 

Creates a kernel with the following values:

  0 0 1 1 1 0 0 
  0 1 1 1 1 1 0 
  1 1 1 1 1 1 1 
  1 1 1 1 1 1 1 
  1 1 1 1 1 1 1 
  0 1 1 1 1 1 0 
  0 0 1 1 1 0 0 

im.KernelCircularMean7x7() -> kernel: imImage [in Lua 5] 

imImage* imKernelGaussian3x3 void   ) 
 

Creates a kernel with the following values:

  1 2 1 
  2 4 2 
  1 2 1 

im.KernelGaussian3x3() -> kernel: imImage [in Lua 5] 

imImage* imKernelGaussian5x5 void   ) 
 

Creates a kernel with the following values:

  1  4  6  4 1 
  4 16 24 16 4 
  6 24 36 24 6 
  4 16 24 16 4 
  1  4  6  4 1 

im.KernelGaussian5x5() -> kernel: imImage [in Lua 5] 

imImage* imKernelBarlett5x5 void   ) 
 

Creates a kernel with the following values:

  1 2 3 2 1 
  2 4 6 4 2 
  3 6 9 6 3 
  2 4 6 4 2 
  1 2 3 2 1 

im.KernelBarlett5x5() -> kernel: imImage [in Lua 5] 

imImage* imKernelTopHat5x5 void   ) 
 

Creates a kernel with the following values:

   0 -1 -1 -1  0 
  -1 -1  3 -1 -1 
  -1  3  4  3 -1 
  -1 -1  3 -1 -1 
   0 -1 -1 -1  0 

im.KernelTopHat5x5() -> kernel: imImage [in Lua 5] 

imImage* imKernelTopHat7x7 void   ) 
 

Creates a kernel with the following values:

   0  0 -1 -1 -1  0  0
   0 -1 -1 -1 -1 -1  0 
  -1 -1  3  3  3 -1 -1 
  -1 -1  3  4  3 -1 -1 
  -1 -1  3  3  3 -1 -1 
   0 -1 -1 -1 -1 -1  0 
   0  0 -1 -1 -1  0  0 

im.KernelTopHat7x7() -> kernel: imImage [in Lua 5] 

imImage* imKernelEnhance void   ) 
 

Creates a kernel with the following values:

   0 -1 -2 -1  0 
  -1 -4  0 -4 -1 
  -2  0 40  0 -2 
  -1 -4  0 -4 -1 
   0 -1 -2 -1  0 

im.KernelEnhance() -> kernel: imImage [in Lua 5]