Documentation
|
|
The C++ interface for bilateral filtering. More...
| array | bilateral (const array &image, const float space, const float color) |
| Bilateral filtering. More... | |
The C++ interface for bilateral filtering.
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.
| array af::bilateral | ( | const array & | image, |
| const float | space, | ||
| const float | color | ||
| ) |
Bilateral filtering.
| [in] | image | input image |
| [in] | space | radius in pixels, area for filtering. note: internally space *= 1.5 |
| [in] | color | difference in color allowed, range depends on values in image |
color range depends on values in the image if image is [0-1], scale color from [0-1]; if image is [0-255], scale color from [0-255];