public final class TLcdBandSelectOp extends ALcdImageOperator
here
for details.
// Using the static method:
ALcdImage inputImage = ...;
int[] bands = new int[]{0};
ALcdImage outputImage = TLcdBandSelectOp.bandSelect(inputImage, bands);
// Using a data object:
ALcdImage inputImage = ...;
int[] bands = new int[]{0};
TLcdBandSelectOp op = new TLcdBandSelectOp();
ILcdDataObject params = op.getParameterDataType().newInstance();
params.setValue(TLcdBandSelectOp.INPUT_IMAGE, inputImage);
params.setValue(TLcdBandSelectOp.INPUT_BANDS, bands);
ALcdImage outputImage = op.apply(params);
ALcdImageOperator.ImageOperatorTypeBuilder
Modifier and Type | Field and Description |
---|---|
static TLcdDataType |
BAND_SELECT_FILTER_TYPE
Input data type of the operator.
|
static TLcdDataProperty |
INPUT_BANDS
The indices of the bands to be retained, in the order in which they are to appear in the output.
|
static TLcdDataProperty |
INPUT_IMAGE
The input image.
|
static String |
NAME
Name of the operator.
|
INPUT_IMAGE_NAME
Constructor and Description |
---|
TLcdBandSelectOp()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
ALcdImage |
apply(ILcdDataObject aParameters)
Applies this operator to the given input parameters.
|
static ALcdImage |
bandSelect(ALcdImage aSource,
int[] aBands)
Extracts a subset of the bands from the given image and/or reorders the bands.
|
createTypeBuilder, createTypeBuilder, equals, getParameterDataType, hashCode, toString
public static final String NAME
public static final TLcdDataProperty INPUT_IMAGE
public static final TLcdDataProperty INPUT_BANDS
public static final TLcdDataType BAND_SELECT_FILTER_TYPE
public ALcdImage apply(ILcdDataObject aParameters)
ALcdImageOperator
apply
in class ALcdImageOperator
aParameters
- the parameters for the operatorpublic static ALcdImage bandSelect(ALcdImage aSource, int[] aBands)
aSource
- the image to be processedaBands
- the indices of the bands to be retained, in the order in which they are to appear in the output