Documentation
|
|
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... | |
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.
| 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_out | image output |
| [in] | d_in | image input |
| [in] | mI | Number of rows in input image |
| [in] | nI | Number of columns in input image |
| [in] | space | radius in pixels, area for filtering |
| [in] | color | difference in color allowed, range depends on values in image |
| [in] | channels | color channels, must be 1 (grayscale) or 3 (color)Bilateral image filter |