TLIB documentation
 

tlConvolution.h

Go to the documentation of this file.
00001 /////////////////////////////////////////////////////////////////////////////////
00002 //
00003 //  This file is part of the TLIB computer vision library.
00004 //  Copyright (C) 2003-2008 Sebastien Grange
00005 //  Copyright (C) 2003-2007 VRAI Group, EPFL
00006 //  All rights reserved.
00007 // 
00008 //  This library is free software; you can redistribute it and/or modify
00009 //  it under the terms of the GNU General Public License("GPL") version 2
00010 //  as published by the Free Software Foundation.
00011 // 
00012 //  <http://www.tuyphon.com/tlib>
00013 //
00014 /////////////////////////////////////////////////////////////////////////////////
00015 
00016 
00017 #ifndef __TLCONVOLUTION_H__
00018 #define __TLCONVOLUTION_H__
00019 
00020 
00021 #include "tlVision.h"
00022 
00023 
00024 // planar convolution
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 // separable convolution
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 // utilities
00037 int
00038 tl_create_gaussian_kernel (int   ksize, float sigma, float *kernel);
00039 
00040 
00041 #endif


TLIB documentation - generated on 7 May 2008
Please address any questions to seb@tuyphon.com
(C) 2001-2008 - S. Grange
(C) 2001-2007 - VRAI Group, EPFL
All Rights Reserved.