00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __TLCONVOLUTION_H__
00018 #define __TLCONVOLUTION_H__
00019
00020
00021 #include "tlVision.h"
00022
00023
00024
00025 int tl_convolution (tlPixel *src, int width, int height, int pixel_width, char *kernel, int kernel_width, int kernel_height, tlRect *rect, tlPixel *dest);
00026 int tl_convolution (tlPixel *src, int width, int height, int pixel_width, float *kernel, int kernel_width, int kernel_height, tlRect *rect, tlPixel *dest);
00027
00028
00029 int tl_convolution_x (tlPixel *src, int width, int height, int pixel_width, char *kernel, int kernel_size, tlRect *rect, int *dest);
00030 int tl_convolution_x (tlPixel *src, int width, int height, int pixel_width, float *kernel, int kernel_size, tlRect *rect, float *dest);
00031 int tl_convolution_x (tlPixel *src, int width, int height, int pixel_width, float *kernel, int kernel_size, tlRect *rect, tlPixel *mask, float *dest);
00032 int tl_convolution_y (int *src, int width, int height, int pixel_width, char *kernel, int kernel_size, tlRect *rect, tlPixel *dest);
00033 int tl_convolution_y (float *src, int width, int height, int pixel_width, float *kernel, int kernel_size, tlRect *rect, tlPixel *dest);
00034 int tl_convolution_y (float *src, int width, int height, int pixel_width, float *kernel, int kernel_size, tlRect *rect, tlPixel *mask, tlPixel *dest);
00035
00036
00037 int
00038 tl_create_gaussian_kernel (int ksize, float sigma, float *kernel);
00039
00040
00041 #endif