Class TLcdColorLookupTable

java.lang.Object
com.luciad.imaging.operator.util.ALcdColorLookupTable
com.luciad.imaging.operator.util.TLcdColorLookupTable

public class TLcdColorLookupTable extends ALcdColorLookupTable
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
  • 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 table
      aAlphaMode - the alpha mode
  • Method Details

    • getAlphaMode

      public TLcdColorLookupTable.AlphaMode getAlphaMode()
      Returns how the alpha of the output color is computed.
      Returns:
      the alpha mode
    • getLookupTable

      public TLcdLookupTable getLookupTable()
      Returns the 3D color lookup table.
      Returns:
      the lookup table.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • newBuilder

      public static TLcdColorLookupTable.Builder<?> newBuilder()
      Creates a new builder with the default values.
      Returns:
      the new builder.