public class SubtractFromConst extends OperationJAI
Name: "SubtractFromConst"
JAI operator:
"SubtractFromConst"
Parameters:
| Name | Class | Default value | Minimum value | Maximum value |
|---|---|---|---|---|
"Source" |
GridCoverage2D |
N/A | N/A | N/A |
"constants" |
double[] |
N/A | N/A | N/A |
Operations.subtractFrom(org.opengis.coverage.Coverage, double[]),
SubtractFromConstDescriptor,
Serialized FormOperationJAI.Parametersoperation, RENDERED_MODEPRIMARY_SOURCE_INDEX, SOURCE_0descriptor| Constructor and Description |
|---|
SubtractFromConst()
Constructs a default
"SubtractFromConst" operation. |
| Modifier and Type | Method and Description |
|---|---|
protected NumberRange |
deriveRange(NumberRange[] ranges,
OperationJAI.Parameters parameters)
Returns the expected range of values for the resulting image.
|
String |
getName()
Returns the name of the processing operation.
|
protected Map<String,?> |
getProperties(RenderedImage data,
CoordinateReferenceSystem crs,
InternationalString name,
MathTransform gridToCRS,
GridCoverage2D[] sources,
OperationJAI.Parameters parameters)
Prepares the properties to be given to the coverage created by the
deriveGridCoverage method. |
protected void |
handleJAIEXTParams(ParameterBlockJAI parameters,
ParameterValueGroup parameters2)
Extension point for adding to the JAI
ParameterBlockJAI object the parameters defined
in the ParameterValueGroup, which can be read by the JAI-EXT operations. |
createRenderedImage, deriveCategory, deriveGridCoverage, deriveName, deriveSampleDimension, deriveUnit, doOperation, equals, extractSources, getJAI, getOperationDescriptor, getQuantitative, handleROINoDataInternal, handleROINoDataProperties, hashCode, prepareParameters, resampleToCommonGeometryextractSources, getFactorygetDescription, getDocURL, getNumSources, getParameters, getVendor, getVersion, toStringpublic SubtractFromConst()
"SubtractFromConst" operation.public String getName()
AbstractOperationgetName in interface OperationgetName in class AbstractOperationprotected NumberRange deriveRange(NumberRange[] ranges, OperationJAI.Parameters parameters)
deriveRange in class OperationJAIranges - The range of values from every sources. For unary operations this array has a
length of 1. For binary operations like "add" and "multiply", this array
has a length of 2.parameters - Parameters, rendering hints and coordinate reference system to use.null if unknow.protected void handleJAIEXTParams(ParameterBlockJAI parameters,
ParameterValueGroup parameters2)
OperationJAIParameterBlockJAI object the parameters defined
in the ParameterValueGroup, which can be read by the JAI-EXT operations.
Notice that if you are using JAI, the new parameters will not be accepted by the ParameterBlockJAI instance.
handleJAIEXTParams in class OperationJAIparameters - ParameterBlockJAI instance used by the current JAI-EXT/JAI
operationparameters2 - ParameterValueGroup instance containing input operation parametersprotected Map<String,?> getProperties(RenderedImage data, CoordinateReferenceSystem crs, InternationalString name, MathTransform gridToCRS, GridCoverage2D[] sources, OperationJAI.Parameters parameters)
OperationJAIderiveGridCoverage method. The default implementation returns null.getProperties in class OperationJAIdata - The RenderedImage created by this operation.crs - The coordinate reference system assigned to the coverage this OperationJAI
will produce.name - The name assigned to the coverage this OperationJAI will produce.gridToCRS - The transform from grid to crs to be
assigned to the coverage this OperationJAI will produce.sources - The sources to be assigned to the coverage this OperationJAI will
produce.parameters - The parameters that were used by this OperationJAI.Map with the properties generated by this OperationJAI or null if
we haven't any.Copyright © 1996–2019 Geotools. All rights reserved.