The C interface for bilateral. More...

afError af_bilateral_S (float *d_out, const float *d_in, unsigned mI, unsigned nI, const float space, const float color, int channels)
 Bilateral filtering. More...

Detailed Description

The C interface for bilateral.

A bilateral filter is a edge-preserving filter that reduces noise in an image. The intensity of each pixel is replaced by a weighted average of the intensities of nearby pixels. The weights follow a Gaussian distribution and depend on the distance as well as the color distance.

The bilateral filter requires the size of the filter (in pixels) and the upper bound on color values, N, where pixel values range from 0–N inclusively. One and three channel images are supported.

Function Documentation

afError af_bilateral_S ( float *  d_out,
const float *  d_in,
unsigned  mI,
unsigned  nI,
const float  space,
const float  color,
int  channels 

Bilateral filtering.

[out]d_outimage output
[in]d_inimage input
[in]mINumber of rows in input image
[in]nINumber of columns in input image
[in]spaceradius in pixels, area for filtering
[in]colordifference in color allowed, range depends on values in image
[in]channelscolor channels, must be 1 (grayscale) or 3 (color)Bilateral image filter