ESP32 motion
convolution.h
Go to the documentation of this file.
1 
3 #ifndef CONVOLUTION_H
4 #define CONVOLUTION_H
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 #include <stdbool.h>
10 
12 bool convH(float* in, float* out, int dataSizeX, int dataSizeY, const float* kernelX, int kSizeX);
13 
15 bool convV(float* in, float* out, int dataSizeX, int dataSizeY, const float* kernelY, int kSizeY);
16 
21 bool convolve2DSeparable(float* in, float* out, int dataSizeX, int dataSizeY, const float* kernelX,
22  int kSizeX, const float* kernelY, int kSizeY);
23 
28 bool convolve2DSeparable8(unsigned char* in, unsigned char* out, int dataSizeX, int dataSizeY,
29  float* kernelX, int kSizeX, float* kernelY, int kSizeY);
30 
31 #ifdef __cplusplus
32 }
33 #endif
34 
35 #endif
convolve2DSeparable8
bool convolve2DSeparable8(unsigned char *in, unsigned char *out, int dataSizeX, int dataSizeY, float *kernelX, int kSizeX, float *kernelY, int kSizeY)
8bit version composite 2D convolution
Definition: convolution.c:18
convolve2DSeparable
bool convolve2DSeparable(float *in, float *out, int dataSizeX, int dataSizeY, const float *kernelX, int kSizeX, const float *kernelY, int kSizeY)
composite 2D convolution
Definition: convolution.c:204
convV
bool convV(float *in, float *out, int dataSizeX, int dataSizeY, const float *kernelY, int kSizeY)
Vertical 1D convolution.
Definition: convolution.c:396
convH
bool convH(float *in, float *out, int dataSizeX, int dataSizeY, const float *kernelX, int kSizeX)
Horizontal 1D convolution.
Definition: convolution.c:500