public abstract class ALcdImageOperatorChain extends Object
ALcdImageOperatorChain.newBuilder()
.bandSelect(new int[] { 0, 1, 2 })
.pixelRescale(new double[] { 0.8, 0.6, 0.8 }, new double[] { 0, 0.2, 0 })
.build();
In this snippet, a band select operator which
extracts the first three bands from an image is combined with a
pixel rescale
to adjust the image's color values.
Note that both of these operators normally accept an image as one of their input
parameters, but this is not set via the builder. Instead, it is passed to the
chain's apply(com.luciad.imaging.ALcdImage) method, and it is the
responsibility of the chain to ensure that the output of one operator is supplied
as input to the next.Modifier and Type | Class and Description |
---|---|
static class |
ALcdImageOperatorChain.Builder
Builder for creating ALcdImageOperatorChain
instances.
|
Constructor and Description |
---|
ALcdImageOperatorChain() |
Modifier and Type | Method and Description |
---|---|
abstract ALcdImage |
apply(ALcdImage aInput)
Applies this operator chain to the given image.
|
static ALcdImageOperatorChain.Builder |
newBuilder()
Creates a new operator chain builder.
|
public abstract ALcdImage apply(ALcdImage aInput)
aInput
- the image to be processedpublic static ALcdImageOperatorChain.Builder newBuilder()