BayerConversionToMono Method

CVB.Net Documentation
Convert a monochrome image with a Bayer pattern to a proper monochrome image.

Namespace:  Stemmer.Cvb.Foundation
Assembly:  Stemmer.Cvb.Foundation (in Stemmer.Cvb.Foundation.dll) Version: 14.0.0.0
Syntax

public static Image ToMono(
	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: Image
Newly created image that contains the conversion result
Exceptions

ExceptionCondition
ArgumentNullExceptionIf the input imgSrc is null.
ObjectDisposedExceptionIf the input imgSrc has already been disposed
See Also

Reference