←Select platform

GetFunctionalLookupTable Method

Summary

Updates a range of entries in the lookup table, based on the specified mathematical function. For more information about this function please refer to GetFunctionalLookupTable

Syntax

C#
VB
WinRT C#
C++
public static int[] GetFunctionalLookupTable(  
   int[] lookupTable, 
   int start, 
   int end, 
   int factor, 
   Leadtools.Imageprocessing.Effects.FunctionalLookupTableFlags flags 
) 
Public Shared Function GetFunctionalLookupTable( _ 
   ByVal lookupTable() As Integer, _ 
   ByVal start As Integer, _ 
   ByVal end As Integer, _ 
   ByVal factor As Integer, _ 
   ByVal flags As Leadtools.Imageprocessing.Effects.FunctionalLookupTableFlags _ 
) As Integer() 
public static int[] GetFunctionalLookupTable(  
   int[] lookupTable, 
   int start, 
   int end, 
   int factor, 
   Leadtools.Imageprocessing.Effects.FunctionalLookupTableFlags flags 
) 
 function Leadtools.ImageProcessing.Effects.EffectsUtilities.GetFunctionalLookupTable(  
   lookupTable , 
   start , 
   end , 
   factor , 
   flags  
) 
public: 
static array<int>^ GetFunctionalLookupTable(  
   array<int>^ lookupTable, 
   int start, 
   int end, 
   int factor, 
   Leadtools.Imageprocessing.Effects.FunctionalLookupTableFlags flags 
)  

Parameters

lookupTable
The initial lookup table array. The user must set the first and the last element of the lookup table manually (i.e. lookupTable[0] = firstValue; lookupTable[tableSize - 1] = lastValue;), if you set the first element to last value and the last element to the first value then the lookup table will become inverted. This array is readonly and will not be updated, this function will return the updated lookup table array as the return value of this function.

start
Index of the first entry in the lookup table to update. The indices of the table correspond to the intensity values. If this parameter has a negative value the corresponding index to lookupTable is equal to its value + its length. The range of its possible value is between (- lookupTable length/2) and ( lookupTable length/2 - 1).

end
Index of the last entry in the lookup table to update. The indices of the table correspond to the intensity values. If this parameter has a negative value the corresponding index to lookupTable is equal to its value + its length. The range of its possible value is between (- lookupTable length/2) and ( lookupTable length/2 - 1).

factor
Value that indicates the factor to be applied in the function operation specified in the flags parameter. This parameter is used only if flags is set to FunctionalLookupTableFlags.Exponential, FunctionalLookupTableFlags.Sigmoid or FunctionalLookupTableFlags.Logarithm. If FunctionalLookupTableFlags.Exponential or FunctionalLookupTableFlags.Sigmoid is set, the value of this parameter can be any integer (+/-). If FunctionalLookupTableFlags.Logarithm is set, its value should be >= 0. However, if factor = 0, the lookup table will be filled linearly from start to end, regardless of the value set in flags.

flags
Flags that indicate the function used to update the lookup table and whether or not the lookupTable should contain signed or unsigned data.

Return Value

This function returns the updated lookup table array

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ImageProcessing.Effects Assembly