BayerConversionToRgb Method (Image, 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 void ToRgb(
	Image imgSrc,
	Image imgDst,
	BayerPattern pattern,
	RgbConversion conversion
)

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
Exceptions

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

Reference