public class TLcdCompositeOp extends ALcdImageOperator
"no data" value
, the
result for the current pixel is also "no data".
// Using the static method:
ALcdBasicImage inputImage = ...;
ALcdBasicImage secondImage = ...;
ALcdBasicImage outputImage = TLcdCompositeOp.composite(inputImage, secondImage);
// Using a data object:
ALcdBasicImage inputImage = ...;
ALcdBasicImage secondImage = ...;
TLcdCompositeOp op = new TLcdCompositeOp();
ILcdDataObject params = op.getParameterDataType().newInstance();
params.setValue(TLcdCompositeOp.INPUT_IMAGE, inputImage);
params.setValue(TLcdCompositeOp.SECOND_IMAGE, secondImage);
ALcdBasicImage outputImage = op.apply(params);
![]() | + | ![]() |
ALcdImageOperator.ImageOperatorTypeBuilder
Modifier and Type | Field and Description |
---|---|
static TLcdDataType |
COMPOSITE_FILTER_TYPE
Input data type of the operator.
|
static TLcdDataProperty |
INPUT_IMAGE
The input image.
|
static String |
NAME
Name of the operator.
|
static TLcdDataProperty |
SECOND_IMAGE
Image to overlay on top of the input image.
|
INPUT_IMAGE_NAME
Constructor and Description |
---|
TLcdCompositeOp()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
ALcdImage |
apply(ILcdDataObject aParameters)
Applies this operator to the given input parameters.
|
static ALcdBasicImage |
composite(ALcdBasicImage aInputImage,
ALcdBasicImage aSecondImage)
Compose two images.
|
createTypeBuilder, createTypeBuilder, equals, getParameterDataType, hashCode, toString
public static final String NAME
public static final TLcdDataProperty INPUT_IMAGE
public static final TLcdDataProperty SECOND_IMAGE
public static final TLcdDataType COMPOSITE_FILTER_TYPE
public ALcdImage apply(ILcdDataObject aParameters)
ALcdImageOperator
apply
in class ALcdImageOperator
aParameters
- the parameters for the operatorpublic static ALcdBasicImage composite(ALcdBasicImage aInputImage, ALcdBasicImage aSecondImage)
aInputImage
- the input image.aSecondImage
- image to overlay on top of the input.