Convert a Bayer-pattern image to an RGB image.
Namespace: Stemmer.Cvb.Foundation
Assembly: Stemmer.Cvb.Foundation (in Stemmer.Cvb.Foundation.dll) Version: 14.0.0.0
Syntax
public static Image ToRgb( Image imgSrc, BayerPattern pattern, RgbConversion conversion, GammaCorrection gamma, WhiteBalanceFactors whiteBalance )
Parameters
- imgSrc
- Type: Stemmer.CvbImage
Image to be converted - pattern
- Type: Stemmer.Cvb.FoundationBayerPattern
Pattern in the top left corner of the sensor with which imgSrc was acquired - conversion
- Type: Stemmer.Cvb.FoundationRgbConversion
Conversion method - gamma
- Type: Stemmer.Cvb.FoundationGammaCorrection
Gamma correction - whiteBalance
- Type: Stemmer.CvbWhiteBalanceFactors
White balance
Return Value
Type: ImageNewly created image that contains the conversion result
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If the input imgSrc is null. |
ObjectDisposedException | If the input imgSrc has already been disposed |
See Also