Stereo IVCL  1.0.0
Stereo Matching on GPGPU
All Files Functions Variables Macros Pages
Macros | Functions | Variables
filters.cl File Reference

Macros

#define at2(arr, x, y, width)   arr[x * width + y]
 

Functions

__kernel void gaussian_filter (__global uchar *inputL, __global uchar *inputR, __global uchar *gaussianL, __global uchar *gaussianR)
 
__kernel void sobel_filter (__global uchar *inputL, __global uchar *inputR, __global uchar *sobelL, __global uchar *sobelR)
 

Variables

float constant gaussian_kernel [25]
 
float constant sobel_kernelY [25]
 
float constant sobel_kernelX [25]
 

Macro Definition Documentation

◆ at2

#define at2 (   arr,
  x,
  y,
  width 
)    arr[x * width + y]

Function Documentation

◆ gaussian_filter()

__kernel void gaussian_filter ( __global uchar *  inputL,
__global uchar *  inputR,
__global uchar *  gaussianL,
__global uchar *  gaussianR 
)

Perform 5x5 Gaussian filtering on an image

Parameters
inputLLeft input image
inputRRight input image
gaussianLThe Gaussian filtered left image
gaussianRThe Gaussian filtered right image.

◆ sobel_filter()

__kernel void sobel_filter ( __global uchar *  inputL,
__global uchar *  inputR,
__global uchar *  sobelL,
__global uchar *  sobelR 
)

Perform 5x5 Sobel filtering on an image

Parameters
inputLLeft input image
inputRRight input image
sobelLThe Sobel filtered left image
sobelRThe Sobel filtered right image.

Variable Documentation

◆ gaussian_kernel

float constant gaussian_kernel[25]
Initial value:
= { 0.000002f, 0.000212f, 0.000922f, 0.000212f, 0.000002f,
0.000212f, 0.024745f, 0.107391f, 0.024745f, 0.000212f,
0.000922f, 0.107391f, 0.466066f, 0.107391f, 0.000922f,
0.000212f, 0.024745f, 0.107391f, 0.024745f, 0.000212f,
0.000002f, 0.000212f, 0.000922f, 0.000212f, 0.000002f }

◆ sobel_kernelX

float constant sobel_kernelX[25]
Initial value:
= { -0.41666f, -0.06666f, -0.08333f, -0.06666f, -0.41666f,
-0.03333f, -0.08333f, -0.16666f, -0.08333f, -0.03333f,
0.0f, 0.0f, 0.0f, 0.0f, 0.0f,
0.03333f, 0.08333f, 0.16666f, 0.08333f, 0.03333f,
0.41666f, 0.06666f, 0.08333f, 0.06666f, 0.41666f }

◆ sobel_kernelY

float constant sobel_kernelY[25]
Initial value:
= { -0.41666f, -0.03333f, 0.0f, 0.03333f, 0.41666f,
-0.06666f, -0.08333f, 0.0f, 0.08333f, 0.06666f,
-0.08333f, -0.16666f, 0.0f, 0.16666f, 0.08333f,
-0.06666f, -0.08333f, 0.0f, 0.08333f, 0.06666f,
-0.41666f, -0.03333f, 0.0f, 0.03333f, 0.41666f }