Class TLcdExpandOp

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

public class TLcdExpandOp extends ALcdImageOperator
Expands an image.

Note: Expanding can affect the spatial bounds of the ALcdBasicImage and should hence be used with care when working with ALcdImageMosaic as the bounds of an individual ALcdBasicImage should not be altered.

Example


 // Using the static method:
 ALcdBasicImage inputImage = ...;
 ALcdImage outputImage = TLcdExpandOp.expand(inputImage, 0, 0, 1350, 675);

 // Using a data object:
 ALcdBasicImage inputImage = ...;
 TLcdExpandOp op = new TLcdExpandOp();
 ILcdDataObject params = op.getParameterDataType().newInstance();
 params.setValue(TLcdExpandOp.INPUT_IMAGE, inputImage);
 params.setValue(TLcdExpandOp.EXPAND_X, 0);
 params.setValue(TLcdExpandOp.EXPAND_Y, 0);
 params.setValue(TLcdExpandOp.EXPAND_WIDTH, 1350);
 params.setValue(TLcdExpandOp.EXPAND_HEIGHT, 675);
 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.
    • EXPAND_X

      public static final TLcdDataProperty EXPAND_X
      X coordinate of the expanded region.
    • EXPAND_Y

      public static final TLcdDataProperty EXPAND_Y
      Y coordinate of the expanded region.
    • EXPAND_WIDTH

      public static final TLcdDataProperty EXPAND_WIDTH
      Width of the expanded region.
    • EXPAND_HEIGHT

      public static final TLcdDataProperty EXPAND_HEIGHT
      Height of the expanded region.
    • EXPAND_FILTER_TYPE

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

    • TLcdExpandOp

      public TLcdExpandOp()
      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
    • expand

      public static ALcdImage expand(ALcdImage aInputImage, int aExpandX, int aExpandY, int aExpandWidth, int aExpandHeight)
      Creates a expand operator for a given input image
      Parameters:
      aInputImage - the image to be expanded
      aExpandX - x coordinate of the expanded region
      aExpandY - y coordinate of the expanded region
      aExpandWidth - width of the expanded region
      aExpandHeight - height of the expanded region
      Returns:
      the expand operator