Do more. Code less. Free software for GPU computing.
<scroll to top>

RGB to Grayscale

Colorspace Conversion

Image color convertion to grayscale. More...

Device pointer interface: RGB to Grayscale Conversion

Parameters:
[out]d_outThe ouput image
[in]mINumber of rows in input image
[in]nINumber of columns in input image
[in]d_inInput image | MxNx3 RGB column major | 3xMxN RGB row major
[in]packedInput image memory layout is row major sequential RGB (1)
Note:
Only 3xMxN packed RGB input -> MxNx1 packed output currently supported.

afError af_rgb2gray_S (float *d_out, unsigned mI, unsigned nI, const float *d_in, unsigned packed)
 Image resize.

Detailed Description

Image color convertion to grayscale.


Function Documentation

afError af_rgb2gray_S ( float *  d_out,
unsigned  mI,
unsigned  nI,
const float *  d_in,
unsigned  packed 
)

Image resize.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines