diff options
Diffstat (limited to 'filter.h')
-rw-r--r-- | filter.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/filter.h b/filter.h new file mode 100644 index 0000000..5b70294 --- /dev/null +++ b/filter.h @@ -0,0 +1,52 @@ +/** +* @file filter.h +* @brief various filtering algorithm definitions +* @author Patrick Roth - roth@stettbacher.ch +* @version 1.0 +* @date 2015-08-28 +* @copyright 2012-2016 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
\ No newline at end of file |