ETRI IVCL 1.0.0
Acceleration SW Platform for Ondevice
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
inverse_warp_and_ncc.cl File Reference

Functions

__kernel void warp_linear (read_only image2d_t src, write_only image2d_t dst, __global float *X, __global float *Y, const int width, const int height)
 
__kernel void get_tgt_mean (read_only image2d_t tgt, write_only image2d_t tgt_mean, const int kernel_size)
 
__kernel void get_src_mean (read_only image2d_t src, write_only image2d_t src_mean, const int kernel_size)
 
__kernel void get_cost (read_only image2d_t tgt, read_only image2d_t src, read_only image2d_t tgt_mean_img, read_only image2d_t src_mean_img, __global float *cost, const int width, const int kernel_size)
 

Variables

const sampler_t sampler_linear = CLK_NORMALIZED_COORDS_TRUE | CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_LINEAR
 
const sampler_t sampler = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_NEAREST
 

Function Documentation

◆ get_cost()

__kernel void get_cost ( read_only image2d_t  tgt,
read_only image2d_t  src,
read_only image2d_t  tgt_mean_img,
read_only image2d_t  src_mean_img,
__global float *  cost,
const int  width,
const int  kernel_size 
)

Compute cost volume

Parameters
tgttarget image (uchar4)
srcsource image (float4)
tgt_mean_imgmean target image (float4)
src_mean_imgmean source image (float4)
costretruned cost volume
width
kernel_sizekernel size

◆ get_src_mean()

__kernel void get_src_mean ( read_only image2d_t  src,
write_only image2d_t  src_mean,
const int  kernel_size 
)

Get mean source image

Parameters
srcsource image (float4)
src_meanmean source image (float4)
kernel_sizekernel size

◆ get_tgt_mean()

__kernel void get_tgt_mean ( read_only image2d_t  tgt,
write_only image2d_t  tgt_mean,
const int  kernel_size 
)

Get mean target image

Parameters
tgttarget image (uchar4)
tgt_meanmean target image (float4)
kernel_sizekernel size

◆ warp_linear()

__kernel void warp_linear ( read_only image2d_t  src,
write_only image2d_t  dst,
__global float *  X,
__global float *  Y,
const int  width,
const int  height 
)

linear warping source to destination

Parameters
srcsource image (uchar4)
dstreturned linear warped image (float4)
Xlinear warped X indexes
Ylinear warped Y indexes

Variable Documentation

◆ sampler

const sampler_t sampler = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_NEAREST

◆ sampler_linear

const sampler_t sampler_linear = CLK_NORMALIZED_COORDS_TRUE | CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_LINEAR