Mali OpenCL SDK v1.1.0
 All Classes Files Functions Variables Macros Pages
sobel.cl File Reference

Go to the source code of this file.

Functions

__kernel void sobel (__global const uchar *restrict inputImage, const int width, __global char *restrict outputImageDX, __global char *restrict outputImageDY)
 Sobel filter kernel function.
 

Function Documentation

__kernel void sobel ( __global const uchar *restrict  inputImage,
const int  width,
__global char *restrict  outputImageDX,
__global char *restrict  outputImageDY 
)

Sobel filter kernel function.

Parameters
[in]inputImageInput image data in row-major format.
[in]widthWidth of the image passed in as inputImage.
[out]outputImageDXOutput image of the calculated gradient in the X direction.
[out]outputImageDYOutput image of the calculated gradient in the Y direction.

Definition at line 18 of file sobel.cl.