public final class TLcdBandMergeOp extends ALcdImageOperator
interpret
them
as RGB. For color data the bands should generally not be re-ordered. Otherwise they may or may not be interpreted as a color
anymore. See here
for details.
// Using the static method:
ALcdBasicImage redImage = ...;
ALcdBasicImage greenImage = ...;
ALcdBasicImage blueImage = ...;
ALcdBasicImage outputImage =
TLcdBandMergeOp.bandMerge(
TLcdBandMergeOp.bandMerge(redImage, greenImage),
blueImage
);
// Using a data object:
ALcdBasicImage redImage = ...;
ALcdBasicImage greenImage = ...;
ALcdBasicImage blueImage = ...;
TLcdBandMergeOp op = new TLcdBandMergeOp();
ILcdDataObject params = op.getParameterDataType().newInstance();
params.setValue(TLcdBandMergeOp.INPUT_IMAGE, redImage);
params.setValue(TLcdBandMergeOp.SECOND_IMAGE, greenImage);
ALcdBasicImage outputImage = op.apply(params);
params = op.getParameterDataType().newInstance();
params.setValue(TLcdBandMergeOp.INPUT_IMAGE, outputImage);
params.setValue(TLcdBandMergeOp.SECOND_IMAGE, blueImage);
outputImage = op.apply(params);
ALcdImageOperator.ImageOperatorTypeBuilder
Modifier and Type | Field and Description |
---|---|
static TLcdDataType |
BAND_MERGE_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
The image to band merge the input image with.
|
INPUT_IMAGE_NAME
Constructor and Description |
---|
TLcdBandMergeOp()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
ALcdImage |
apply(ILcdDataObject aParameters)
Applies this operator to the given input parameters.
|
static ALcdBasicImage |
bandMerge(ALcdBasicImage aInputImage,
ALcdBasicImage aSecondImage)
Create a band merge operator with a specified input image.
|
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 BAND_MERGE_FILTER_TYPE
public ALcdImage apply(ILcdDataObject aParameters)
ALcdImageOperator
apply
in class ALcdImageOperator
aParameters
- the parameters for the operatorpublic static ALcdBasicImage bandMerge(ALcdBasicImage aInputImage, ALcdBasicImage aSecondImage)
aInputImage
- the input image.aSecondImage
- the image to band merge the input image with.