Normalize an input image using mean/variance normalization (the gray
values of the image will be stretched modified to generate a histogram
as close as possible to the input target mean and variance values).
Namespace: Stemmer.Cvb
Assembly: Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax
public static Image NormalizeMeanVariance( this Image img, double targetMean, double targetVariance )
Parameters
- img
- Type: Stemmer.CvbImage
image to be normalized - targetMean
- Type: SystemDouble
target mean value to achieve - targetVariance
- Type: SystemDouble
target variance value to achieve
Return Value
Type: Imagenewly created image
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Image. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
See Also