BayerConversionToRgb Method (Image, Image, BayerPattern, RgbConversion, GammaCorrection, WhiteBalanceFactors)

CVB.Net Documentation
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 void ToRgb(
	Image imgSrc,
	Image imgDst,
	BayerPattern pattern,
	RgbConversion conversion,
	GammaCorrection gamma,
	WhiteBalanceFactors whiteBalance
)

Parameters

imgSrc
Type: Stemmer.CvbImage
Monochrome image with the Bayer pattern to be converted
imgDst
Type: Stemmer.CvbImage
Destination to receive the conversion results (preferable created by CreateDestinationImage(Size2D, RgbConversion)).
pattern
Type: Stemmer.Cvb.FoundationBayerPattern
Pattern in the top left corner of the sensor with which imgDst was acquired
conversion
Type: Stemmer.Cvb.FoundationRgbConversion
Conversion method
gamma
Type: Stemmer.Cvb.FoundationGammaCorrection
Gamma correction
whiteBalance
Type: Stemmer.CvbWhiteBalanceFactors
White balance
Exceptions

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

Reference