BayerConversionCreateDestinationImage Method (Image, RgbConversion)

CVB.Net Documentation
Create a destination image for Bayer to RGB conversions.

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

public static Image CreateDestinationImage(
	Image img,
	RgbConversion mode
)

Parameters

img
Type: Stemmer.CvbImage
Image to create the destination image for
mode
Type: Stemmer.Cvb.FoundationRgbConversion
Conversion mode to be used

Return Value

Type: Image
BayerToRGB destination image
Exceptions

ExceptionCondition
ArgumentNullExceptionIf the input img is null.
ObjectDisposedExceptionIf the input img has already been disposed
Remarks

Bayer to RGB conversions are also implemented as in-place operations, however the destination image needs to have a suitable width and height to be eligible. The destination width and height depend on the size of the input image as well as the conversion method.
See Also

Reference