CalculateBayerColorLUT Method

NI Vision for Visual Basic

CalculateBayerColorLUT Method

Syntax

CWIMAQVision.CalculateBayerColorLUT redGain, greenGain, blueGain, bitDepth, redLUT, greenLUT, blueLUT

Return Type

Long

Purpose

Calculates the LUTs to be used by BayerColorDecode

Parameters

redGain As Double

The white balance gain for the red component of the Bayer conversion.

greenGain As Double

The white balance gain for the green component of the Bayer conversion.

blueGain As Double

The white balance gain for the blue component of the Bayer conversion.

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.