aboutsummaryrefslogtreecommitdiffstats
path: root/filter.h
blob: 7299ceb15401d39b591c6a59f165725a37e19384 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* @file			filter.h
* @brief		various filtering algorithm definitions
* @author		Patrick Roth - roth@stettbacher.ch
* @copyright	Stettbacher Signal Processing AG
* 
* @remarks
*
* <PRE>
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* </PRE>
*
*/


#ifndef _FILTER_H
#define _FILTER_H


#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

void filter_sobel_3s16(int16_t *img_sobel, const int16_t *img_in, const int height, const int width,
					   const int skip_ch1, const int skip_ch2, const int skip_ch3) ;

void filter_gauss_3s16(int16_t *img_gauss, const int16_t *img_in, const int height, const int width, int kernel_size, const float spread,
					   const int skip_ch1, const int skip_ch2, const int skip_ch3);

void filter_binary_3s16(int8_t *img_bin, const int16_t *img_in, const int height, const int width, const int16_t threshold, const int8_t bin_value,
						const int skip_ch1, const int skip_ch2, const int skip_ch3);

#if defined(__cplusplus) || defined(c_plusplus)
} // extern "C"
#endif


#endif // _FILTER_H