Convert the input image to mono.
Namespace: Stemmer.Cvb.Foundation
Assembly: Stemmer.Cvb.Foundation (in Stemmer.Cvb.Foundation.dll) Version: 14.0.0.0
Syntax
public static Image ToMono( Image img, double weightR, double weightG, double weightB )
Parameters
- img
- Type: Stemmer.CvbImage
Image to be converted. - weightR
- Type: SystemDouble
Weight (multiplier) for the red channel - weightG
- Type: SystemDouble
Weight (multiplier) for the green channel - weightB
- Type: SystemDouble
Weight (multiplier) for the blue channel
Return Value
Type: ImageNew converted image.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
Remarks
See Also