Main Page | Class Hierarchy | Class List | File List | Class Members

LIBCP::Kernel Class Reference

Kernels that can be used together with the convolution functionality. More...

#include <kernel.h>

List of all members.

Public Member Functions

int dimension ()
int divisor ()
int bias ()
int * pixel (int i, int j)
int * data ()

Static Public Member Functions

KernelcreateKernel (void *data, int dimension, int divisor, int bias)
KernelcreateKernel (char *fileName)


Detailed Description

Kernels that can be used together with the convolution functionality.


Member Function Documentation

int LIBCP::Kernel::bias  ) 
 

Returns the bias of this kernel the bias as integer

Kernel * LIBCP::Kernel::createKernel char *  fileName  )  [static]
 

Load Kernel from file filename of the kernel file a pointer to the loaded kernel

Kernel * LIBCP::Kernel::createKernel void *  data,
int  dimension,
int  divisor,
int  bias
[static]
 

Creates a new kernel instance from the given data buffer. data is the buffer with the kernel data dimension is the width and height of the kernel (kernels are always square) divisor is the divisor for this kernel bias will be added to the kernel a pointer to the newly created kernel

int * LIBCP::Kernel::data  ) 
 

Returns a pointer to the data buffer of this kernel an int pointer

int LIBCP::Kernel::dimension  ) 
 

Returns the dimension of this kernel (width and height) the dimension as integer

int LIBCP::Kernel::divisor  ) 
 

Returns the divisor of this kernel the divisor as integer

int * LIBCP::Kernel::pixel int  i,
int  j
 

Returns the pixel value at position (i,j) of the kernel i is the horizontal position j is the vertical position an int pointer into the buffer of this kernel


The documentation for this class was generated from the following files:
Generated on Wed May 26 16:43:53 2004 for libcp by doxygen 1.3.7