kernel.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
#ifndef _LIBCP_KERNEL_H_
00026
#define _LIBCP_KERNEL_H_
00027
00028
#include <cstdlib>
00029
#include <iostream>
00030
00031
using namespace std;
00032
00033
#include "globals.h"
00034
#include "image.h"
00035
00036
namespace LIBCP{
00037
00038
00043 class Kernel
00044 {
00045
00046
public:
00047 ~
Kernel();
00048
00049
static Kernel*
createKernel(
void*
data,
int dimension,
int divisor,
int bias);
00050
static Kernel* createKernel(
char *fileName);
00051
int dimension();
00052
int divisor();
00053
int bias();
00054
int*
pixel(
int i,
int j);
00055
int*
data();
00056
00057
00058
private:
00059
Kernel(
int dimension,
int divisor,
int bias,
int *m_data);
00060
int m_dimension;
00061
int m_divisor;
00062
int m_bias;
00063
int *m_data;
00064 };
00065 }
00066
00067
#endif //_LIBCP_KERNEL_H_
Generated on Wed May 26 16:43:53 2004 for libcp by
1.3.7