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

Macros

#define R_PORT   0.2126f
 
#define G_PORT   0.7152f
 
#define B_PORT   0.0722f
 

Functions

__kernel void convertGrayAndNormalize (__global uchar *src, __global float *dst)
 
__kernel void resize (__global float *src, __global float *dst)
 
__kernel void gaussian (__global float *src, __global float *dst, const int width, const int height, __global const float *gKernel, const int kSize)
 

Macro Definition Documentation

◆ B_PORT

#define B_PORT   0.0722f

◆ G_PORT

#define G_PORT   0.7152f

◆ R_PORT

#define R_PORT   0.2126f

Function Documentation

◆ convertGrayAndNormalize()

__kernel void convertGrayAndNormalize ( __global uchar *  src,
__global float *  dst 
)

Change 3Channel RGB image to normalized gray image.

Parameters
src3Channel RGB input image
dstNormalized grayscale output image with pixel values in 0.0f~1.0f

◆ gaussian()

__kernel void gaussian ( __global float *  src,
__global float *  dst,
const int  width,
const int  height,
__global const float *  gKernel,
const int  kSize 
)

Blurs an image using a Gaussian filter using padding
Assume that dst already copy the data of src

Parameters
srcInput image; Normalized grayscale input image
dstOutput gaussian filtered image
widthwidth of the input image
heightheight of the input image
gKernelGaussian kernel
kSizeGaussian kernel size. Have to be positive and odd

◆ resize()

__kernel void resize ( __global float *  src,
__global float *  dst 
)

Resize image using Nearest neighbor sampling. Reduce width and height in half

Parameters
srcNormalized grayscale input image
dstResized image