Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   Related Pages   Examples  

IntKernel Class Reference

#include <IntKernel.h>

Inheritance diagram for IntKernel::

Kernel Image List of all members.

Public Methods

 IntKernel (char *name="")
 IntKernel (INT_KERNEL_TYPE _kernel_type=LAPLACIAN_1, char *name="")
IntKernel& operator^ (IntKernel &kernel)

Detailed Description

Implements data structures and functions for manipulating convolution kernels

Definition at line 10 of file IntKernel.h.


Constructor & Destructor Documentation

IntKernel::IntKernel ( char * name = "" ) [inline]
 

Creates a kernel with the specified name without allocating space for the kernel data.

Definition at line 14 of file IntKernel.h.

IntKernel::IntKernel ( INT_KERNEL_TYPE _kernel_type = LAPLACIAN_1,
char * name = "" )
 

Creates a kernel of size wxh with the specified name and type (kernel_type) and allocates space for storing the kernel data. Currently supported types of kernels are:

  • LAPLACIAN_1
     
           0 -1  0 
          -1  4 -1  
           0 -1  0 
  • LAPLACIAN_2
     
          -1 -1 -1 
          -1  8 -1 
          -1 -1 -1 
  • SOBEL_H
     
          -1 -2 -1  
           0  0  0  
           1  2  1 
  • SOBEL_V
     
          -1  0  1 
          -2  0  2 
          -1  0  1 
  • PREWITT_H
     
          -1 -1 -1  
           0  0  0  
           1  1  1 
  • PREWITT_V
      
           1  0 -1  
           1  0 -1  
           1  0 -1 
  • KIRSCH_1
      
           5  5  5 
          -3  0 -3 
          -3 -3 -3 
  • KIRSCH_2
     
          -3  5  5 
          -3  0  5 
          -3 -3 -3 
  • KIRSCH_3
     
          -3 -3  5 
          -3  0  5 
          -3 -3  5 
  • KIRSCH_4
     
          -3 -3 -3 
          -3  0  5 
          -3  5  5 
  • KIRSCH_5
     
          -3 -3 -3 
          -3  0 -3  
           5  5  5 
  • KIRSCH_6
     
          -3 -3 -3  
           5  0 -3  
           5  5 -3 
  • KIRSCH_7
      
           5 -3 -3  
           5  0 -3  
           5 -3 -3 
  • KIRSCH_8
      
           5  5 -3  
           5  0 -3 
          -3 -3 -3 
  • KERNEL_INT_UNKNOWN (unspecified or supplied from a file).

Definition at line 22 of file IntKernel.cpp.


Member Function Documentation

IntKernel & IntKernel::operator^ ( IntKernel & kernel )
 

Invert (change the sign of) the kernel coefficients.

Definition at line 74 of file IntKernel.cpp.


The documentation for this class was generated from the following files: