Package com.luciad.imaging.operator.util
Class TLcdColorLookupTable
java.lang.Object
com.luciad.imaging.operator.util.ALcdColorLookupTable
com.luciad.imaging.operator.util.TLcdColorLookupTable
An immutable 3D color lookup table.
This represents a color transformation where one input color is mapped to one output color. This
can for example be used for effects such as brightness, contrast and hue. You can use the
builder
to conveniently create a lookup table.
A color is transformed by using its red, green and blue components as coordinates in the lookup
table. Assuming color components in [0,1], the RGB color (0.0, 0.0, 0.0) is mapped to the table
entry at index (0, 0, 0) and the RGB color (1.0, 1.0, 1.0) to the table entry at index
(w - 1, h - 1, d - 1). The other table entries are uniformly distributed between these. The
values that lie between the table entries are computed depending on the ELcdInterpolationType
.
The alpha component of the output color depends on the TLcdColorLookupTable.AlphaMode
.
Note that the interval
on the lookup table is not used.- Since:
- 2013.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
An enumeration that defines how the alpha value for the output color is computed.static class
Builder for color lookup tables. -
Constructor Summary
ConstructorsConstructorDescriptionTLcdColorLookupTable
(TLcdLookupTable aLookupTable, TLcdColorLookupTable.AlphaMode aAlphaMode) Creates a lookup table with user-defined settings. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns how the alpha of the output color is computed.Returns the 3D color lookup table.int
hashCode()
static TLcdColorLookupTable.Builder
<?> Creates a new builder with the default values.toString()
-
Constructor Details
-
TLcdColorLookupTable
public TLcdColorLookupTable(TLcdLookupTable aLookupTable, TLcdColorLookupTable.AlphaMode aAlphaMode) Creates a lookup table with user-defined settings. The lookup table should have 3 dimensions and each entry should have 4 components: red, green, blue and alpha.- Parameters:
aLookupTable
- the lookup tableaAlphaMode
- the alpha mode
-
-
Method Details
-
getAlphaMode
Returns how the alpha of the output color is computed.- Returns:
- the alpha mode
-
getLookupTable
Returns the 3D color lookup table.- Returns:
- the lookup table.
-
toString
-
equals
-
hashCode
public int hashCode() -
newBuilder
Creates a new builder with the default values.- Returns:
- the new builder.
-