Package com.luciad.imaging.operator.util
Class TLcdLookupTable
java.lang.Object
com.luciad.imaging.operator.util.TLcdLookupTable
An immutable lookup table.
The number of entries in the table is equal to the product of its
sizes. Each
entry has getComponentCount() components of a specific type. The
values that lie between the table entries are computed depending on the ELcdInterpolationType.
The entries in the data buffer are first ordered along the first dimension,
then along the second (if it exists), and so on. The components of an entry are consecutive.
You can use the builder to conveniently create a lookup table.- Since:
- 2013.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for lookup tables.static enumAn enumeration that defines the type of a component. -
Constructor Summary
ConstructorsConstructorDescriptionTLcdLookupTable(int[] aDimensions, int aComponentCount, TLcdLookupTable.ComponentType aComponentType, ELcdInterpolationType aInterpolation, Buffer aData) Creates a lookup table with user-defined settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintThe number of components for a single entry in the table.The type of a component.getData()Returns the buffer with the table data.intReturns the number of dimensions of the lookup table.Returns the type of interpolation that is used for evaluating values that lie between table entries.Returns the interval of values that should be mapped on the table data.intgetSize(int aDimension) Returns the size of the table along the specified dimension.inthashCode()static TLcdLookupTable.BuilderCreates a new builder with the default values.toString()
-
Constructor Details
-
TLcdLookupTable
public TLcdLookupTable(int[] aDimensions, int aComponentCount, TLcdLookupTable.ComponentType aComponentType, ELcdInterpolationType aInterpolation, Buffer aData) Creates a lookup table with user-defined settings. The data contains the the product of theaDimensionsentries with eachaComponentCountcomponents of typeaComponentType.- Parameters:
aDimensions- the size of the table along each dimension, the table must have at least 1 dimension and all sizes must be greater than 0aComponentCount- the number of components for a single entryaComponentType- the type of a componentaInterpolation- the interpolation type for the componentsaData- the buffer that contains the data
-
-
Method Details
-
getDimensionCount
public int getDimensionCount()Returns the number of dimensions of the lookup table.- Returns:
- the number of dimensions
-
getSize
public int getSize(int aDimension) Returns the size of the table along the specified dimension.- Parameters:
aDimension- the dimension in [0,getDimensionCount()[.- Returns:
- the size along the
aDimension'th dimension
-
getComponentCount
public int getComponentCount()The number of components for a single entry in the table.- Returns:
- the number of components
-
getComponentType
The type of a component.- Returns:
- the type of a component
-
getInterpolation
Returns the type of interpolation that is used for evaluating values that lie between table entries.- Returns:
- the interpolation type
-
getData
Returns the buffer with the table data.- Returns:
- the buffer with the table data
-
getInterval
Returns the interval of values that should be mapped on the table data.- Returns:
- the interval or
nullif it is unknown
-
toString
-
equals
-
hashCode
public int hashCode() -
newBuilder
Creates a new builder with the default values.- Returns:
- the new builder.
-