pub fn bilateral<T>(
input: &Array<T>,
spatial_sigma: f32,
chromatic_sigma: f32,
iscolor: bool
) -> Array<T::AbsOutType> where
T: HasAfEnum + ImageFilterType,
T::AbsOutType: HasAfEnum,
Bilateral Filter.
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.
input
array is the input imagespatial_sigma
is the spatial variance parameter that decides the filter windowchromatic_sigma
is the chromatic variance parameteriscolor
indicates if the input is color image or grayscaleFiltered Image - Array
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4