Class TLcdColorLookupOp

java.lang.Object
com.luciad.imaging.operator.ALcdImageOperator
com.luciad.imaging.operator.TLcdColorLookupOp

public final class TLcdColorLookupOp extends ALcdImageOperator
Transforms one color to another using a lookup in a color table.

Example


 // Using the static method:
 ALcdColorLookupTable lut = ...;
 ALcdImage inputImage = ...;
 ALcdImage outputImage = TLcdColorLookupOp.colorLookup(inputImage, lut);

 // Using a data object:
 ALcdColorLookupTable lut = ...;
 ALcdImage inputImage = ...;
 TLcdColorLookupOp op = new TLcdColorLookupOp();
 ILcdDataObject params = op.getParameterDataType().newInstance();
 params.setValue(TLcdColorLookupOp.INPUT_IMAGE, inputImage);
 params.setValue(TLcdColorLookupOp.LOOKUP_TABLE, lut);
 ALcdImage outputImage = op.apply(params);
 
Input

Output
Since:
2014.0
  • Field Details

    • NAME

      public static final String NAME
      Name of the operator.
      See Also:
    • INPUT_IMAGE

      public static final TLcdDataProperty INPUT_IMAGE
      The input image.
    • LOOKUP_TABLE

      public static final TLcdDataProperty LOOKUP_TABLE
      Lookup table to use in the operation.
    • COLOR_LOOKUP_FILTER_TYPE

      public static final TLcdDataType COLOR_LOOKUP_FILTER_TYPE
      Input data type of the operator.
  • Constructor Details

    • TLcdColorLookupOp

      public TLcdColorLookupOp()
      Default constructor.
  • Method Details

    • apply

      public ALcdImage apply(ILcdDataObject aParameters)
      Description copied from class: ALcdImageOperator
      Applies this operator to the given input parameters. The parameters are stored in a data object which must be of the type given by ALcdImageOperator.getParameterDataType().
      Specified by:
      apply in class ALcdImageOperator
      Parameters:
      aParameters - the parameters for the operator
      Returns:
      the image produced by the operator
    • colorLookup

      public static ALcdImage colorLookup(ALcdImage aSource, ALcdColorLookupTable aTable)
      Perfrom a color lookup operation on an image.
      Parameters:
      aSource - the input image.
      aTable - lookup table to use.
      Returns:
      an image equivalent to the input, with every value replaced by its corresponding entry in the lookup table.