http://www.emgu.com
Convert the color pallette to four lookup tables

Namespace: Emgu.CV.Util
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.2.1777 (2.4.2.1777)

Syntax

C#
public static void ColorPaletteToLookupTable(
	ColorPalette pallette,
	out Matrix<byte> bTable,
	out Matrix<byte> gTable,
	out Matrix<byte> rTable,
	out Matrix<byte> aTable
)
Visual Basic
Public Shared Sub ColorPaletteToLookupTable ( _
	pallette As ColorPalette, _
	<OutAttribute> ByRef bTable As Matrix(Of Byte), _
	<OutAttribute> ByRef gTable As Matrix(Of Byte), _
	<OutAttribute> ByRef rTable As Matrix(Of Byte), _
	<OutAttribute> ByRef aTable As Matrix(Of Byte) _
)
Visual C++
public:
static void ColorPaletteToLookupTable(
	ColorPalette^ pallette, 
	[OutAttribute] Matrix<unsigned char>^% bTable, 
	[OutAttribute] Matrix<unsigned char>^% gTable, 
	[OutAttribute] Matrix<unsigned char>^% rTable, 
	[OutAttribute] Matrix<unsigned char>^% aTable
)

Parameters

pallette
Type: System.Drawing.Imaging..::..ColorPalette
The color pallette to transform
bTable
Type: Emgu.CV..::..Matrix<(Of <(<'Byte>)>)>%
Lookup table for the B channel
gTable
Type: Emgu.CV..::..Matrix<(Of <(<'Byte>)>)>%
Lookup table for the G channel
rTable
Type: Emgu.CV..::..Matrix<(Of <(<'Byte>)>)>%
Lookup table for the R channel
aTable
Type: Emgu.CV..::..Matrix<(Of <(<'Byte>)>)>%
Lookup table for the A channel

See Also