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

Macros

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

Functions

int index_y (int y, int height)
 
int index_x (int x, int width)
 
__kernel void ASW_Disparity (__global uchar *left, __global uchar *right, __global float *datacost, int width, int height, int dispRange, int mSize)
 

Macro Definition Documentation

◆ at2

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

◆ at3

#define at3 (   arr,
  x,
  y,
  z,
  depth,
  width 
)    arr[x * depth * width + y * depth + z]

Function Documentation

◆ ASW_Disparity()

__kernel void ASW_Disparity ( __global uchar *  left,
__global uchar *  right,
__global float *  datacost,
int  width,
int  height,
int  dispRange,
int  mSize 
)

Compute stereo datacost using a window of Adaptive Support Weight (ASW)

Parameters
inputLleft input image
inputRright input image
datacostThe Sobel filtered left image
widthThe image width
heightThe image height
dispRangeThe stereo disparity search range
mSizeThe local window size

◆ index_x()

int index_x ( int  x,
int  width 
)

Handle x edge cases

Parameters
xThe index x
widthThe image width

◆ index_y()

int index_y ( int  y,
int  height 
)

Handle y edge cases

Parameters
yThe index y
heightThe image height