![]() |
ETRI IVCL 1.0.0
Acceleration SW Platform for Ondevice
|
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) |
| #define B_PORT 0.0722f |
| #define G_PORT 0.7152f |
| #define R_PORT 0.2126f |
| __kernel void convertGrayAndNormalize | ( | __global uchar * | src, |
| __global float * | dst | ||
| ) |
Change 3Channel RGB image to normalized gray image.
| src | 3Channel RGB input image |
| dst | Normalized grayscale output image with pixel values in 0.0f~1.0f |
| __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
| src | Input image; Normalized grayscale input image |
| dst | Output gaussian filtered image |
| width | width of the input image |
| height | height of the input image |
| gKernel | Gaussian kernel |
| kSize | Gaussian kernel size. Have to be positive and odd |
| __kernel void resize | ( | __global float * | src, |
| __global float * | dst | ||
| ) |
Resize image using Nearest neighbor sampling. Reduce width and height in half
| src | Normalized grayscale input image |
| dst | Resized image |