BayerConversionToRgb Method (Image, BayerPattern, RgbConversion)

CVB.Net Documentation
Convert a Bayer-pattern image to an RGB image (omitting the gamma correction and the white balance).

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
)

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

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