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) |
#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 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)
inputL | left input image |
inputR | right input image |
datacost | The Sobel filtered left image |
width | The image width |
height | The image height |
dispRange | The stereo disparity search range |
mSize | The local window size |
int index_x | ( | int | x, |
int | width | ||
) |
Handle x edge cases
x | The index x |
width | The image width |
int index_y | ( | int | y, |
int | height | ||
) |
Handle y edge cases
y | The index y |
height | The image height |