Stereo IVCL  1.0.0
Stereo Matching on GPGPU
All Files Functions Variables Macros Pages
Macros | Functions
wta.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

__kernel void winner_takes_all (__global float *datacost, __global uchar *dispFinal, int width, int height, int dispRange, int dispScale)
 

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

◆ winner_takes_all()

__kernel void winner_takes_all ( __global float *  datacost,
__global uchar *  dispFinal,
int  width,
int  height,
int  dispRange,
int  dispScale 
)

Find the minimum cost for each pixel using winner takes all algorithm

Parameters
datacostThe Sobel filtered left image
dispFinalThe disparity result
widthThe image width
heightThe image height
dispRangeThe stereo disparity search range
dispScaleThe scaling factor so disparity is within 0-256 pixel value