This function performs adaptive filtering of an image degraded by
constant power additive noise.
Namespace: Stemmer.Cvb.Foundation
Assembly: Stemmer.Cvb.Foundation (in Stemmer.Cvb.Foundation.dll) Version: 14.0.0.0
Syntax
Parameters
- img
- Type: Stemmer.CvbImage
Image to be filtered - maskSize
- Type: Stemmer.CvbSize2D
Filter mask to be used
Return Value
Type: ImageThe filtered image
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
Remarks
For each pixel of the input image, the function determines the local image mean and variance in the rectangular neighborhood (mask) defined by maskSize. The deviation from the local average is then diminished according to the local variance and the noise threshold parameters. The noise threshold parameter may be zero, in which case the function tries to determine itself what local noise threshold to apply. This normally yields the best results.
Mask offset is automatically set to the center of the image.
See Also