BayerColorDecode Method

NI Vision for Visual Basic

BayerColorDecode Method

Syntax

CWIMAQVision.BayerColorDecode SourceImage, DestImage, bayerPattern, bitDepth, redLUT, greenLUT, blueLUT

Return Type

Long

Purpose

Decodes a Bayer encoded image into a color image.

Parameters

SourceImage As CWIMAQImage

The Bayer encoded image to decode.

DestImage As CWIMAQImage

The resulting decoded image.

bayerPattern As Long

The Bayer pattern to use to decode the image.

bitDepth As Long

Number of bits used to represent each pixel value.

redLUT As Variant

Lookup table for the red color plane.

greenLUT As Variant

Lookup table for the green color plane.

blueLUT As Variant

Lookup table for the blue color plane.