Computer Vision Library
Files | Functions
Generic Convolution Tools

Files

file  conv.js
 Generic Convolution GLSL Shaders Generic Convolution GLSL Shaders.
 

Functions

void conv2d (array kernel)
 
void conv1d (array kernel, CONV_TYPE convType)
 

Detailed Description

OpenGL shaders for convolution filters

Function Documentation

◆ conv1d()

void conv1d ( array  kernel,
CONV_TYPE  convType 
)

Make a convolution with a 1D separable kernel. The kernel will be directly scaled by scaleKernel. The convolution is performed by rows and cols separable

Parameters
kernel- the kernel 1D vector
convType- CONV_TYPE such as COLS wise, ROWS wise or both

◆ conv2d()

void conv2d ( array  kernel)

Make a convolution with a 2D kernel. The kernel will be directly scaled by scaleKernel

Parameters
kernel- 2D convolution kernel