signal.h Source File

signal.h
Go to the documentation of this file.
1 /*******************************************************
2 * Copyright (c) 2014, ArrayFire
3 * All rights reserved.
4 *
5 * This file is distributed under 3-clause BSD license.
6 * The complete license agreement can be obtained at:
7 * http://arrayfire.com/licenses/BSD-3-Clause
8 ********************************************************/
9
10 #pragma once
11 #include <af/defines.h>
12
13 #ifdef __cplusplus
14
15 namespace af
16 {
17 class array;
18 class dim4;
19
32 AFAPI array approx1(const array &in, const array &pos,
33 const interpType method = AF_INTERP_LINEAR, const float offGrid = 0.0f);
34
48 AFAPI array approx2(const array &in, const array &pos0, const array &pos1,
49 const interpType method = AF_INTERP_LINEAR, const float offGrid = 0.0f);
50
61 AFAPI array fftNorm(const array& in, const double norm_factor, const dim_t odim0=0);
62
74 AFAPI array fft2Norm(const array& in, const double norm_factor, const dim_t odim0=0, const dim_t odim1=0);
75
88 AFAPI array fft3Norm(const array& in, const double norm_factor, const dim_t odim0=0, const dim_t odim1=0, const dim_t odim2=0);
89
90 #if AF_API_VERSION >= 31
91
101 AFAPI void fftInPlace(array& in, const double norm_factor = 1);
102 #endif
103
104 #if AF_API_VERSION >= 31
105
116 AFAPI void fft2InPlace(array& in, const double norm_factor = 1);
117 #endif
118
119 #if AF_API_VERSION >= 31
120
131 AFAPI void fft3InPlace(array& in, const double norm_factor = 1);
132 #endif
133
146 AFAPI array fft(const array& in, const dim_t odim0=0);
147
161 AFAPI array fft2(const array& in, const dim_t odim0=0, const dim_t odim1=0);
162
177 AFAPI array fft3(const array& in, const dim_t odim0=0, const dim_t odim1=0, const dim_t odim2=0);
178
189 AFAPI array dft(const array& in, const double norm_factor, const dim4 outDims);
190
203 AFAPI array dft(const array& in, const dim4 outDims);
204
216 AFAPI array dft(const array& in);
217
228 AFAPI array ifftNorm(const array& in, const double norm_factor, const dim_t odim0=0);
229
241 AFAPI array ifft2Norm(const array& in, const double norm_factor, const dim_t odim0=0, const dim_t odim1=0);
242
255 AFAPI array ifft3Norm(const array& in, const double norm_factor, const dim_t odim0=0, const dim_t odim1=0, const dim_t odim2=0);
256
257 #if AF_API_VERSION >= 31
258
268 AFAPI void ifftInPlace(array& in, const double norm_factor = 1);
269 #endif
270
271 #if AF_API_VERSION >= 31
272
283 AFAPI void ifft2InPlace(array& in, const double norm_factor = 1);
284 #endif
285
286 #if AF_API_VERSION >= 31
287
298 AFAPI void ifft3InPlace(array& in, const double norm_factor = 1);
299 #endif
300
313 AFAPI array ifft(const array& in, const dim_t odim0=0);
314
328 AFAPI array ifft2(const array& in, const dim_t odim0=0, const dim_t odim1=0);
329
344 AFAPI array ifft3(const array& in, const dim_t odim0=0, const dim_t odim1=0, const dim_t odim2=0);
345
356 AFAPI array idft(const array& in, const double norm_factor, const dim4 outDims);
357
370 AFAPI array idft(const array& in, const dim4 outDims);
371
383 AFAPI array idft(const array& in);
384
385 #if AF_API_VERSION >= 31
386
398 template<int rank>
399 array fftR2C(const array &in,
400 const dim4& dims,
401 const double norm_factor = 0);
402 #endif
403
404 #if AF_API_VERSION >= 31
405
416 template<int rank>
417 array fftR2C(const array &in,
418 const double norm_factor = 0);
419 #endif
420
421 #if AF_API_VERSION >= 31
422
434 template<int rank>
435 array fftC2R(const array &in, bool is_odd = false,
436 const double norm_factor = 0);
437 #endif
438
461 AFAPI array convolve(const array& signal, const array& filter, const convMode mode=AF_CONV_DEFAULT, const convDomain domain=AF_CONV_AUTO);
462
480 AFAPI array convolve(const array& col_filter, const array& row_filter, const array& signal, const convMode mode=AF_CONV_DEFAULT);
481
497 AFAPI array convolve1(const array& signal, const array& filter, const convMode mode=AF_CONV_DEFAULT, const convDomain domain=AF_CONV_AUTO);
498
514 AFAPI array convolve2(const array& signal, const array& filter, const convMode mode=AF_CONV_DEFAULT, const convDomain domain=AF_CONV_AUTO);
515
531 AFAPI array convolve3(const array& signal, const array& filter, const convMode mode=AF_CONV_DEFAULT, const convDomain domain=AF_CONV_AUTO);
532
543 AFAPI array fftConvolve(const array& signal, const array& filter, const convMode mode=AF_CONV_DEFAULT);
544
555 AFAPI array fftConvolve1(const array& signal, const array& filter, const convMode mode=AF_CONV_DEFAULT);
556
567 AFAPI array fftConvolve2(const array& signal, const array& filter, const convMode mode=AF_CONV_DEFAULT);
568
579 AFAPI array fftConvolve3(const array& signal, const array& filter, const convMode mode=AF_CONV_DEFAULT);
580
590 AFAPI array fir(const array &b, const array &x);
591
604 AFAPI array iir(const array &b, const array &a, const array &x);
605
620 AFAPI array medfilt(const array& in, const dim_t wind_length = 3, const dim_t wind_width = 3, const borderType edge_pad = AF_PAD_ZERO);
621
622 #if AF_API_VERSION >= 34
623
636 AFAPI array medfilt1(const array& in, const dim_t wind_width = 3, const borderType edge_pad = AF_PAD_ZERO);
637 #endif
638
639 #if AF_API_VERSION >= 34
640
654 AFAPI array medfilt2(const array& in, const dim_t wind_length = 3, const dim_t wind_width = 3, const borderType edge_pad = AF_PAD_ZERO);
655 #endif
656
657 }
658 #endif
659
660 #ifdef __cplusplus
661 extern "C" {
662 #endif
663
678 AFAPI af_err af_approx1(af_array *out, const af_array in, const af_array pos,
679 const af_interp_type method, const float offGrid);
680
696 AFAPI af_err af_approx2(af_array *out, const af_array in, const af_array pos0, const af_array pos1,
697 const af_interp_type method, const float offGrid);
698
711 AFAPI af_err af_fft(af_array *out, const af_array in, const double norm_factor, const dim_t odim0);
712
713 #if AF_API_VERSION >= 31
714
726 AFAPI af_err af_fft_inplace(af_array in, const double norm_factor);
727 #endif
728
742 AFAPI af_err af_fft2(af_array *out, const af_array in, const double norm_factor, const dim_t odim0, const dim_t odim1);
743
744 #if AF_API_VERSION >= 31
745
757 AFAPI af_err af_fft2_inplace(af_array in, const double norm_factor);
758 #endif
759
774 AFAPI af_err af_fft3(af_array *out, const af_array in, const double norm_factor, const dim_t odim0, const dim_t odim1, const dim_t odim2);
775
776 #if AF_API_VERSION >= 31
777
789 AFAPI af_err af_fft3_inplace(af_array in, const double norm_factor);
790 #endif
791
804 AFAPI af_err af_ifft(af_array *out, const af_array in, const double norm_factor, const dim_t odim0);
805
806 #if AF_API_VERSION >= 31
807
819 AFAPI af_err af_ifft_inplace(af_array in, const double norm_factor);
820 #endif
821
835 AFAPI af_err af_ifft2(af_array *out, const af_array in, const double norm_factor, const dim_t odim0, const dim_t odim1);
836
837 #if AF_API_VERSION >= 31
838
850 AFAPI af_err af_ifft2_inplace(af_array in, const double norm_factor);
851 #endif
852
867 AFAPI af_err af_ifft3(af_array *out, const af_array in, const double norm_factor, const dim_t odim0, const dim_t odim1, const dim_t odim2);
868
869 #if AF_API_VERSION >= 31
870
882 AFAPI af_err af_ifft3_inplace(af_array in, const double norm_factor);
883 #endif
884
885 #if AF_API_VERSION >= 31
886
900 AFAPI af_err af_fft_r2c (af_array *out, const af_array in, const double norm_factor, const dim_t pad0);
901 #endif
902
903 #if AF_API_VERSION >= 31
904
919 AFAPI af_err af_fft2_r2c(af_array *out, const af_array in, const double norm_factor, const dim_t pad0, const dim_t pad1);
920 #endif
921
922 #if AF_API_VERSION >= 31
923
939 AFAPI af_err af_fft3_r2c(af_array *out, const af_array in, const double norm_factor, const dim_t pad0, const dim_t pad1, const dim_t pad2);
940 #endif
941
942 #if AF_API_VERSION >= 31
943
958 AFAPI af_err af_fft_c2r (af_array *out, const af_array in, const double norm_factor, const bool is_odd);
959 #endif
960
961 #if AF_API_VERSION >= 31
962
976 AFAPI af_err af_fft2_c2r(af_array *out, const af_array in, const double norm_factor, const bool is_odd);
977 #endif
978
979 #if AF_API_VERSION >= 31
980
994 AFAPI af_err af_fft3_c2r(af_array *out, const af_array in, const double norm_factor, const bool is_odd);
995 #endif
996
1012 AFAPI af_err af_convolve1(af_array *out, const af_array signal, const af_array filter, const af_conv_mode mode, af_conv_domain domain);
1013
1029 AFAPI af_err af_convolve2(af_array *out, const af_array signal, const af_array filter, const af_conv_mode mode, af_conv_domain domain);
1030
1046 AFAPI af_err af_convolve3(af_array *out, const af_array signal, const af_array filter, const af_conv_mode mode, af_conv_domain domain);
1047
1064 AFAPI af_err af_convolve2_sep(af_array *out, const af_array col_filter, const af_array row_filter, const af_array signal, const af_conv_mode mode);
1065
1078 AFAPI af_err af_fft_convolve1(af_array *out, const af_array signal, const af_array filter, const af_conv_mode mode);
1079
1092 AFAPI af_err af_fft_convolve2(af_array *out, const af_array signal, const af_array filter, const af_conv_mode mode);
1093
1106 AFAPI af_err af_fft_convolve3(af_array *out, const af_array signal, const af_array filter, const af_conv_mode mode);
1107
1117 AFAPI af_err af_fir(af_array *y, const af_array b, const af_array x);
1118
1131 AFAPI af_err af_iir(af_array *y, const af_array b, const af_array a, const af_array x);
1132
1147 AFAPI af_err af_medfilt(af_array *out, const af_array in, const dim_t wind_length, const dim_t wind_width, const af_border_type edge_pad);
1148
1149 #if AF_API_VERSION >= 34
1150
1163 AFAPI af_err af_medfilt1(af_array *out, const af_array in, const dim_t wind_width, const af_border_type edge_pad);
1164 #endif
1165
1166 #if AF_API_VERSION >= 34
1167
1181 AFAPI af_err af_medfilt2(af_array *out, const af_array in, const dim_t wind_length, const dim_t wind_width, const af_border_type edge_pad);
1182 #endif
1183
1184
1185 #if AF_API_VERSION >= 34
1186
1194 AFAPI af_err af_set_fft_plan_cache_size(size_t cache_size);
1195 #endif
1196
1197 #ifdef __cplusplus
1198 }
1199 #endif
af_fft_c2r
AFAPI af_err af_fft_c2r(af_array *out, const af_array in, const double norm_factor, const bool is_odd)
C Interface for complex to real fast fourier transform for one dimensional signals.
af::fftConvolve2
AFAPI array fftConvolve2(const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT)
C++ Interface for convolution on two dimensional signals.
af::fftConvolve
AFAPI array fftConvolve(const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT)
C++ Interface for FFT-based convolution any(one through three) dimensional signals.
AF_INTERP_LINEAR
Linear Interpolation.
Definition: defines.h:226
af
Definition: algorithm.h:14
af_ifft_inplace
AFAPI af_err af_ifft_inplace(af_array in, const double norm_factor)
C Interface for fast fourier transform on one dimensional signals.
af::medfilt1
AFAPI array medfilt1(const array &in, const dim_t wind_width=3, const borderType edge_pad=AF_PAD_ZERO)
C++ Interface for median filter.
af::fftC2R
array fftC2R(const array &in, bool is_odd=false, const double norm_factor=0)
C++ Interface for complex to real fast fourier transform.
af_approx2
AFAPI af_err af_approx2(af_array *out, const af_array in, const af_array pos0, const af_array pos1, const af_interp_type method, const float offGrid)
C Interface for signals interpolation on two dimensional signals.
af_border_type
af_border_type
Definition: defines.h:248
af::convolve
AFAPI array convolve(const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT, const convDomain domain=AF_CONV_AUTO)
C++ Interface for convolution any(one through three) dimensional signals.
af::fft2
AFAPI array fft2(const array &in, const dim_t odim0=0, const dim_t odim1=0)
C++ Interface for fast fourier transform on two dimensional signals.
af_ifft2_inplace
AFAPI af_err af_ifft2_inplace(af_array in, const double norm_factor)
C Interface for fast fourier transform on two dimensional signals.
af::fft3InPlace
AFAPI void fft3InPlace(array &in, const double norm_factor=1)
C++ Interface for fast fourier transform on three dimensional signals.
af_fft2_c2r
AFAPI af_err af_fft2_c2r(af_array *out, const af_array in, const double norm_factor, const bool is_odd)
C Interface for complex to real fast fourier transform for two dimensional signals.
af::fftConvolve3
AFAPI array fftConvolve3(const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT)
C++ Interface for convolution on three dimensional signals.
af::fft3Norm
AFAPI array fft3Norm(const array &in, const double norm_factor, const dim_t odim0=0, const dim_t odim1=0, const dim_t odim2=0)
C++ Interface for fast fourier transform on three dimensional signals.
AF_CONV_DEFAULT
Output of the convolution is the same size as input.
Definition: defines.h:277
af::fftConvolve1
AFAPI array fftConvolve1(const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT)
C++ Interface for convolution on one dimensional signals.
af_ifft3_inplace
AFAPI af_err af_ifft3_inplace(af_array in, const double norm_factor)
C Interface for fast fourier transform on three dimensional signals.
af_medfilt
AFAPI af_err af_medfilt(af_array *out, const af_array in, const dim_t wind_length, const dim_t wind_width, const af_border_type edge_pad)
C Interface for median filter.
af_fft_convolve2
AFAPI af_err af_fft_convolve2(af_array *out, const af_array signal, const af_array filter, const af_conv_mode mode)
C Interface for FFT-based convolution on two dimensional signals.
af_fft_convolve1
AFAPI af_err af_fft_convolve1(af_array *out, const af_array signal, const af_array filter, const af_conv_mode mode)
C Interface for FFT-based convolution on one dimensional signals.
af_medfilt1
AFAPI af_err af_medfilt1(af_array *out, const af_array in, const dim_t wind_width, const af_border_type edge_pad)
C Interface for 1D median filter.
af::iir
AFAPI array iir(const array &b, const array &a, const array &x)
C++ Interface for infinite impulse response filter.
af_medfilt2
AFAPI af_err af_medfilt2(af_array *out, const af_array in, const dim_t wind_length, const dim_t wind_width, const af_border_type edge_pad)
C Interface for median filter.
af::fft
AFAPI array fft(const array &in, const dim_t odim0=0)
C++ Interface for fast fourier transform on one dimensional signals.
af::approx1
AFAPI array approx1(const array &in, const array &pos, const interpType method=AF_INTERP_LINEAR, const float offGrid=0.0f)
C++ Interface for data interpolation on one dimensional signals.
af_interp_type
af_interp_type
Definition: defines.h:224
af::ifft2InPlace
AFAPI void ifft2InPlace(array &in, const double norm_factor=1)
C++ Interface for fast fourier transform on two dimensional signals.
af::convolve3
AFAPI array convolve3(const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT, const convDomain domain=AF_CONV_AUTO)
C++ Interface for convolution on three dimensional signals.
af_fft3
AFAPI af_err af_fft3(af_array *out, const af_array in, const double norm_factor, const dim_t odim0, const dim_t odim1, const dim_t odim2)
C Interface for fast fourier transform on three dimensional signals.
af_conv_domain
af_conv_domain
Definition: defines.h:285
af_fft
AFAPI af_err af_fft(af_array *out, const af_array in, const double norm_factor, const dim_t odim0)
C Interface for fast fourier transform on one dimensional signals.
af::fir
AFAPI array fir(const array &b, const array &x)
C++ Interface for finite impulse response filter.
af::ifft3InPlace
AFAPI void ifft3InPlace(array &in, const double norm_factor=1)
C++ Interface for fast fourier transform on three dimensional signals.
af_set_fft_plan_cache_size
AFAPI af_err af_set_fft_plan_cache_size(size_t cache_size)
C Interface for setting plan cache size.
af::fftR2C
array fftR2C(const array &in, const dim4 &dims, const double norm_factor=0)
C++ Interface for real to complex fast fourier transform for one dimensional signals.
af::convolve2
AFAPI array convolve2(const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT, const convDomain domain=AF_CONV_AUTO)
C++ Interface for convolution on two dimensional signals.
af::dft
AFAPI array dft(const array &in, const double norm_factor, const dim4 outDims)
C++ Interface for fast fourier transform on any(1d, 2d, 3d) dimensional signals.
af_err
af_err
Definition: defines.h:63
af_fft2_r2c
AFAPI af_err af_fft2_r2c(af_array *out, const af_array in, const double norm_factor, const dim_t pad0, const dim_t pad1)
C Interface for real to complex fast fourier transform for two dimensional signals.
af::ifft
AFAPI array ifft(const array &in, const dim_t odim0=0)
C++ Interface for inverse fast fourier transform on one dimensional signals.
af::ifft3Norm
AFAPI array ifft3Norm(const array &in, const double norm_factor, const dim_t odim0=0, const dim_t odim1=0, const dim_t odim2=0)
C++ Interface for inverse fast fourier transform on three dimensional signals.
af_fft3_inplace
AFAPI af_err af_fft3_inplace(af_array in, const double norm_factor)
C Interface for fast fourier transform on three dimensional signals.
af::ifftNorm
AFAPI array ifftNorm(const array &in, const double norm_factor, const dim_t odim0=0)
C++ Interface for inverse fast fourier transform on one dimensional signals.
defines.h
af::convolve1
AFAPI array convolve1(const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT, const convDomain domain=AF_CONV_AUTO)
C++ Interface for convolution on one dimensional signals.
af_conv_mode
af_conv_mode
Definition: defines.h:272
af::fft3
AFAPI array fft3(const array &in, const dim_t odim0=0, const dim_t odim1=0, const dim_t odim2=0)
C++ Interface for fast fourier transform on three dimensional signals.
af::idft
AFAPI array idft(const array &in, const double norm_factor, const dim4 outDims)
C++ Interface for inverse fast fourier transform on any(1d, 2d, 3d) dimensional signals.
AF_PAD_ZERO
Out of bound values are 0.
Definition: defines.h:252
af_fft2
AFAPI af_err af_fft2(af_array *out, const af_array in, const double norm_factor, const dim_t odim0, const dim_t odim1)
C Interface for fast fourier transform on two dimensional signals.
dim_t
long long dim_t
Definition: defines.h:50
AF_CONV_AUTO
ArrayFire automatically picks the right convolution algorithm.
Definition: defines.h:286
af_convolve2
AFAPI af_err af_convolve2(af_array *out, const af_array signal, const af_array filter, const af_conv_mode mode, af_conv_domain domain)
C Interface for convolution on two dimensional signals.
af_ifft
AFAPI af_err af_ifft(af_array *out, const af_array in, const double norm_factor, const dim_t odim0)
C Interface for inverse fast fourier transform on one dimensional signals.
af::convDomain
af_conv_domain convDomain
Definition: defines.h:471
af::fft2Norm
AFAPI array fft2Norm(const array &in, const double norm_factor, const dim_t odim0=0, const dim_t odim1=0)
C++ Interface for fast fourier transform on two dimensional signals.
af_ifft3
AFAPI af_err af_ifft3(af_array *out, const af_array in, const double norm_factor, const dim_t odim0, const dim_t odim1, const dim_t odim2)
C Interface for inverse fast fourier transform on three dimensional signals.
AFAPI
#define AFAPI
Definition: defines.h:31
af::ifft2Norm
AFAPI array ifft2Norm(const array &in, const double norm_factor, const dim_t odim0=0, const dim_t odim1=0)
C++ Interface for inverse fast fourier transform on two dimensional signals.
af::borderType
af_border_type borderType
Definition: defines.h:464
af_ifft2
AFAPI af_err af_ifft2(af_array *out, const af_array in, const double norm_factor, const dim_t odim0, const dim_t odim1)
C Interface for inverse fast fourier transform on two dimensional signals.
af_fft_inplace
AFAPI af_err af_fft_inplace(af_array in, const double norm_factor)
C Interface for fast fourier transform on one dimensional signals.
af_fft3_c2r
AFAPI af_err af_fft3_c2r(af_array *out, const af_array in, const double norm_factor, const bool is_odd)
C Interface for complex to real fast fourier transform for three dimensional signals.
af_fft_r2c
AFAPI af_err af_fft_r2c(af_array *out, const af_array in, const double norm_factor, const dim_t pad0)
C Interface for real to complex fast fourier transform for one dimensional signals.
af::ifft2
AFAPI array ifft2(const array &in, const dim_t odim0=0, const dim_t odim1=0)
C++ Interface for inverse fast fourier transform on two dimensional signals.
af_convolve3
AFAPI af_err af_convolve3(af_array *out, const af_array signal, const af_array filter, const af_conv_mode mode, af_conv_domain domain)
C Interface for convolution on three dimensional signals.
af_iir
AFAPI af_err af_iir(af_array *y, const af_array b, const af_array a, const af_array x)
C Interface for infinite impulse response filter.
afcl::array
static af::array array(af::dim4 idims, cl_mem buf, af::dtype type, bool retain=false)
Create an af::array object from an OpenCL cl_mem buffer.
Definition: opencl.h:327
af_fft2_inplace
AFAPI af_err af_fft2_inplace(af_array in, const double norm_factor)
C Interface for fast fourier transform on two dimensional signals.
af::medfilt
AFAPI array medfilt(const array &in, const dim_t wind_length=3, const dim_t wind_width=3, const borderType edge_pad=AF_PAD_ZERO)
C++ Interface for median filter.
af::fftNorm
AFAPI array fftNorm(const array &in, const double norm_factor, const dim_t odim0=0)
C++ Interface for fast fourier transform on one dimensional signals.
af_approx1
AFAPI af_err af_approx1(af_array *out, const af_array in, const af_array pos, const af_interp_type method, const float offGrid)
C Interface for signals interpolation on one dimensional signals.
af_fft_convolve3
AFAPI af_err af_fft_convolve3(af_array *out, const af_array signal, const af_array filter, const af_conv_mode mode)
C Interface for FFT-based convolution on three dimensional signals.
af_convolve1
AFAPI af_err af_convolve1(af_array *out, const af_array signal, const af_array filter, const af_conv_mode mode, af_conv_domain domain)
C Interface for convolution on one dimensional signals.
af_fir
AFAPI af_err af_fir(af_array *y, const af_array b, const af_array x)
C Interface for finite impulse response filter.
af::ifftInPlace
AFAPI void ifftInPlace(array &in, const double norm_factor=1)
C++ Interface for fast fourier transform on one dimensional signals.
af::medfilt2
AFAPI array medfilt2(const array &in, const dim_t wind_length=3, const dim_t wind_width=3, const borderType edge_pad=AF_PAD_ZERO)
C++ Interface for median filter.
af_array
void * af_array
Definition: defines.h:222
af::ifft3
AFAPI array ifft3(const array &in, const dim_t odim0=0, const dim_t odim1=0, const dim_t odim2=0)
C++ Interface for inverse fast fourier transform on three dimensional signals.
af::approx2
AFAPI array approx2(const array &in, const array &pos0, const array &pos1, const interpType method=AF_INTERP_LINEAR, const float offGrid=0.0f)
C++ Interface for data interpolation on two dimensional signals.
af::filter
AFAPI array filter(const array &image, const array &kernel)
Image Filtering.
af::interpType
af_interp_type interpType
Definition: defines.h:463
af::convMode
af_conv_mode convMode
Definition: defines.h:470
af::fft2InPlace
AFAPI void fft2InPlace(array &in, const double norm_factor=1)
C++ Interface for fast fourier transform on two dimensional signals.
af_convolve2_sep
AFAPI af_err af_convolve2_sep(af_array *out, const af_array col_filter, const af_array row_filter, const af_array signal, const af_conv_mode mode)
C Interface for separable convolution on two dimensional signals.
af::fftInPlace
AFAPI void fftInPlace(array &in, const double norm_factor=1)
C++ Interface for fast fourier transform on one dimensional signals.
af_fft3_r2c
AFAPI af_err af_fft3_r2c(af_array *out, const af_array in, const double norm_factor, const dim_t pad0, const dim_t pad1, const dim_t pad2)
C Interface for real to complex fast fourier transform for three dimensional signals.