Package com.luciad.imaging.operator.util
Class TLcdComponentColorLookupTable
java.lang.Object
com.luciad.imaging.operator.util.ALcdColorLookupTable
com.luciad.imaging.operator.util.TLcdComponentColorLookupTable
A color lookup table that transforms each color component individually.
This represents a color transformations where each component of an input color is is mapped to
the same component in the output color. A component-based filter typically requires less memory
then a
3D table but it can only transform each component
individually. Hence it is only suitable for color effects that do not mix multiple image
components. For example a negative filter fits these limitations but a hue filter does not.
You can use the builder to conveniently create component-based lookup
tables.
A component-based lookup table can also be combined with a 3D table to efficiently implement
non-linear color transformations:
- Use a component lookup table to remove the non-linearity of the transformation.
- Use a (transformed)
3D tableto apply the actual transformation.
ELcdInterpolationType. The alpha component of the color is unchanged.
Note that the interval on the component lookup tables are not used.- Since:
- 2013.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for component-based color lookup table's. -
Constructor Summary
ConstructorsConstructorDescriptionTLcdComponentColorLookupTable(TLcdLookupTable aRedLut, TLcdLookupTable aGreenLut, TLcdLookupTable aBlueLut) Creates a component-based color lookup table. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the lookup table for the blue color component.Returns the lookup table for the green color component.Returns the lookup table for the red color component.inthashCode()static TLcdComponentColorLookupTable.Builder<?> Creates a new builder with the default values.
-
Constructor Details
-
TLcdComponentColorLookupTable
public TLcdComponentColorLookupTable(TLcdLookupTable aRedLut, TLcdLookupTable aGreenLut, TLcdLookupTable aBlueLut) Creates a component-based color lookup table. The lookup table should have 1 dimension and each entry should have 1 component.- Parameters:
aRedLut- the lookup table for the red color componentaGreenLut- the lookup table for the green color componentaBlueLut- the lookup table for the blue color component
-
-
Method Details
-
getRedLookupTable
Returns the lookup table for the red color component.- Returns:
- the lookup table for the red color component.
-
getGreenLookupTable
Returns the lookup table for the green color component.- Returns:
- the lookup table for the green color component.
-
getBlueLookupTable
Returns the lookup table for the blue color component.- Returns:
- the lookup table for the blue color component.
-
equals
-
newBuilder
Creates a new builder with the default values.- Returns:
- the new builder.
-
hashCode
public int hashCode()
-