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

Median Filter

Image Filtering

Median filtering of a matrix using the specified window (or a 3 x 3 default window). More...

Device pointer interface: Image Median filtering

Parameters:
[out]d_outOutput buffer to hold the filtered result
[in]d_inInput buffer containing matrix to be filtered
[in]mNumber of rows in input matrix
[in]nNumber of columns in input matrix
[in]h_W2x1 Vector specifying window dimensions to be used

afError af_medfilt_B (char *d_out, unsigned m, unsigned n, const char *d_in, const unsigned *h_W)
 Medfilt: Binary input.
afError af_medfilt_c (unsigned char *d_out, unsigned m, unsigned n, const unsigned char *d_in, const unsigned *h_W)
 Medfilt: 8-bit unsigned int.
afError af_medfilt_I (int *d_out, unsigned m, unsigned n, const int *d_in, const unsigned *h_W)
 Medfilt: int data.
afError af_medfilt_U (unsigned *d_out, unsigned m, unsigned n, const unsigned *d_in, const unsigned *h_W)
 Medfilt: unsigned int data.
afError af_medfilt_S (float *d_out, unsigned m, unsigned n, const float *d_in, const unsigned *h_W)
 Medfilt: single-precision data.
afError af_medfilt_D (double *d_out, unsigned m, unsigned n, const double *d_in, const unsigned *h_W)
 Medfilt: double-precision data.

Detailed Description

Median filtering of a matrix using the specified window (or a 3 x 3 default window).


Function Documentation

afError af_medfilt_B ( char *  d_out,
unsigned  m,
unsigned  n,
const char *  d_in,
const unsigned *  h_W 
)

Medfilt: Binary input.

afError af_medfilt_c ( unsigned char *  d_out,
unsigned  m,
unsigned  n,
const unsigned char *  d_in,
const unsigned *  h_W 
)

Medfilt: 8-bit unsigned int.

afError af_medfilt_I ( int *  d_out,
unsigned  m,
unsigned  n,
const int *  d_in,
const unsigned *  h_W 
)

Medfilt: int data.

afError af_medfilt_U ( unsigned *  d_out,
unsigned  m,
unsigned  n,
const unsigned *  d_in,
const unsigned *  h_W 
)

Medfilt: unsigned int data.

afError af_medfilt_S ( float *  d_out,
unsigned  m,
unsigned  n,
const float *  d_in,
const unsigned *  h_W 
)

Medfilt: single-precision data.

afError af_medfilt_D ( double *  d_out,
unsigned  m,
unsigned  n,
const double *  d_in,
const unsigned *  h_W 
)

Medfilt: double-precision data.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines