Package com.luciad.imaging.operator
Class ALcdImageOperatorChain
java.lang.Object
com.luciad.imaging.operator.ALcdImageOperatorChain
Combines a number of
image operators into
a single function which requires only the input image to be supplied by the
user. Simple, linear operator chains can be constructed using the supplied
ALcdImageOperatorChain.Builder. More
complex processing graphs can be constructed by creating custom implementations
of this class.
The following code snippet illustrates the usage of the chain builder:
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.- Since:
- 2014.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder for creating ALcdImageOperatorChain instances. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract ALcdImage
Applies this operator chain to the given image.Creates a new operator chain builder.
-
Constructor Details
-
ALcdImageOperatorChain
public ALcdImageOperatorChain()
-
-
Method Details
-
apply
Applies this operator chain to the given image.- Parameters:
aInput
- the image to be processed- Returns:
- the processed image
-
newBuilder
Creates a new operator chain builder.- Returns:
- a new operator chain builder
-