ESP32 motion
convolution.h File Reference
#include <stdbool.h>

Go to the source code of this file.

Functions

bool convH (float *in, float *out, int dataSizeX, int dataSizeY, const float *kernelX, int kSizeX)
 Horizontal 1D convolution. More...
 
bool convV (float *in, float *out, int dataSizeX, int dataSizeY, const float *kernelY, int kSizeY)
 Vertical 1D convolution. More...
 
bool convolve2DSeparable (float *in, float *out, int dataSizeX, int dataSizeY, const float *kernelX, int kSizeX, const float *kernelY, int kSizeY)
 composite 2D convolution More...
 
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 More...
 

Function Documentation

◆ convH()

bool convH ( float *  in,
float *  out,
int  dataSizeX,
int  dataSizeY,
const float *  kernelX,
int  kSizeX 
)

Horizontal 1D convolution.

◆ convolve2DSeparable()

bool convolve2DSeparable ( float *  in,
float *  out,
int  dataSizeX,
int  dataSizeY,
const float *  kernelX,
int  kSizeX,
const float *  kernelY,
int  kSizeY 
)

composite 2D convolution

Parameters
infloat* image
Returns
big if true

◆ 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

Parameters
inuint8* image
Returns
big if true

◆ convV()

bool convV ( float *  in,
float *  out,
int  dataSizeX,
int  dataSizeY,
const float *  kernelY,
int  kSizeY 
)

Vertical 1D convolution.