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

Image Filter

Image Filtering

2D Image filtering/convolution. More...

Device pointer interface: Image filtering.

Parameters:
[out]d_outThe filtered output
[in]xiNumber of rows in input image
[in]yiNumber of columns in input image
[in]d_inInput image
[in]xfNumber of rows in the input filter
[in]yfNumber of columns in the input filter
[in]d_filterInput filter (on device)
[in]typeused to specify behavior near the boundaries -{Symmetric(1), Repeating(2), Circular(3), Value(4)}
[in]valueif type=4, this value is used for out of bounds
[in]convtrue for convolution, false for correlation
[in]fulltrue for full convolution, false otherwise
[in]batchANumber of input images (gfor)
[in]batchFNumber of input filters (gfor)

afError af_filter_S (float *d_out, unsigned xi, unsigned yi, const float *d_in, unsigned xf, unsigned yf, const float *d_filter, unsigned type, float value, bool conv, bool full, unsigned batchA, unsigned batchF)
 Single precision, Image filtering.
afError af_filter_D (double *d_out, unsigned xi, unsigned yi, const double *d_in, unsigned xf, unsigned yf, const double *d_filter, unsigned type, float value, bool conv, bool full, unsigned batchA, unsigned batchF)
 Double precision, Image filtering.

Detailed Description

2D Image filtering/convolution.


Function Documentation

afError af_filter_S ( float *  d_out,
unsigned  xi,
unsigned  yi,
const float *  d_in,
unsigned  xf,
unsigned  yf,
const float *  d_filter,
unsigned  type,
float  value,
bool  conv,
bool  full,
unsigned  batchA,
unsigned  batchF 
)

Single precision, Image filtering.

afError af_filter_D ( double *  d_out,
unsigned  xi,
unsigned  yi,
const double *  d_in,
unsigned  xf,
unsigned  yf,
const double *  d_filter,
unsigned  type,
float  value,
bool  conv,
bool  full,
unsigned  batchA,
unsigned  batchF 
)

Double precision, Image filtering.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines