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) |
#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] |
__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
datacost | The Sobel filtered left image |
dispFinal | The disparity result |
width | The image width |
height | The image height |
dispRange | The stereo disparity search range |
dispScale | The scaling factor so disparity is within 0-256 pixel value |