Namespace: Stemmer.Cvb.Foundation
Assembly: Stemmer.Cvb.Foundation (in Stemmer.Cvb.Foundation.dll) Version: 14.0.0.0
Parameters
- img
- Type: Stemmer.CvbImage
Image to be filtered - maskSize
- Type: Stemmer.CvbSize2D
Filter mask to be used - noiseThreshold
- Type: SystemDouble
Noise suppression threshold.
Valid input ranges from 0 to 1; with 0 causing the function to determine the threshold automatically.
Return Value
Type: ImageThe filtered image
Exception | Condition |
---|---|
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
If the noiseThreshold is outside its range. |
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.