ImageGear v26.3 - Updated November 9, 2022
ImageGear.Core Assembly / ImageGear.Core Namespace / ImGearFullLUT Class / GetTableIndex Method / GetTableIndex(Int64) Method
LUT input value.




In This Topic
GetTableIndex(Int64) Method
In This Topic
Obtains index in the table corresponding to Int64 input value.
Syntax
'Declaration
 
Public Overloads Function GetTableIndex( _
   ByVal inputValue As Long _
) As UInteger
 
'Usage
 
Dim instance As ImGearFullLUT
Dim inputValue As Long
Dim value As UInteger
 
value = instance.GetTableIndex(inputValue)

Parameters

inputValue
LUT input value.

Return Value

Integer number.
Remarks
This method returns table index corresponding to input value. If LUT input is signed, and input value is negative, table index is calculated as 2's complement to number of table entries. Otherwise, table index is equal to input value.

For example, if input depth is 12, and input value is -1, table index is 4096 - 1 = 4095.

See Also