ETRI IVCL 1.0.0
Acceleration SW Platform for Ondevice
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
asw_kernel.cl File Reference
#include "Constant.h"

Functions

__kernel void ASW_Disparity (__global uchar *left, __global uchar *right, __global float *datacost, int width, int height, int dispRange, int mSize)
 
__kernel void ASW_Disparity_image (const int with_gaussian, __read_only image2d_t left, __read_only image2d_t right, __global float *datacost, int dispRange, int mSize)
 

Variables

__constant sampler_t sampler = CLK_NORMALIZED_COORDS_TRUE | CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_LINEAR
 

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
leftLeft input image
rightRight input image
datacostThe initial 3D cost
widthThe image width
heightThe image height
dispRangeThe stereo disparity search range
mSizeThe local window size

◆ ASW_Disparity_image()

__kernel void ASW_Disparity_image ( const int  with_gaussian,
__read_only image2d_t  left,
__read_only image2d_t  right,
__global float *  datacost,
int  dispRange,
int  mSize 
)

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

Parameters
with_gaussianwhether to process Gaussian or not; true = 1, false = 0
leftLeft input image; with gaussian : float4 image2d, without gaussian : uint4 image2d
rightRight input image; with gaussian : float4 image2d, without gaussian : uint4 image2d
datacostThe initial 3D cost
dispRangeThe stereo disparity search range
mSizeThe local window size

Variable Documentation

◆ sampler

__constant sampler_t sampler = CLK_NORMALIZED_COORDS_TRUE | CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_LINEAR