org.geotools.coverage.processing.operation
Class DivideByConst
Object
AbstractOperation
Operation2D
OperationJAI
DivideByConst
- All Implemented Interfaces:
- Serializable, Operation
public class DivideByConst
- extends OperationJAI
Divides every sample values of the source coverage by constants (one for each band).
If the number of constants supplied is less than the number of bands of the destination,
then the constant from entry 0 is applied to all the bands. Otherwise, a constant from a
different entry is applied to each band.
Name: "DivideByConst"
JAI operator: "DivideByConst"
Parameters:
Name |
Class |
Default value |
Minimum value |
Maximum value |
"Source" |
GridCoverage2D |
N/A |
N/A |
N/A |
"constants" |
double[] |
1.0 |
N/A |
N/A |
- Since:
- 2.2
- Author:
- Martin Desruisseaux (IRD)
- See Also:
Operations.divideBy(org.opengis.coverage.Coverage, double[])
,
DivideByConstDescriptor
,
Serialized Form
- Module:
modules/library/coverage (gt-coverage.jar)
Constructor Summary |
DivideByConst()
Constructs a default "DivideByConst" operation. |
Methods inherited from class OperationJAI |
createRenderedImage, deriveCategory, deriveGridCoverage, deriveName, deriveSampleDimension, deriveUnit, doOperation, equals, getJAI, getOperationDescriptor, getProperties, getQuantitative, prepareParameters, resampleToCommonGeometry |
Methods inherited from class AbstractOperation |
ensureNonNull, getDescription, getDocURL, getName, getNumSources, getParameters, getProcessor, getVendor, getVersion, hashCode, toString |
DivideByConst
public DivideByConst()
- Constructs a default
"DivideByConst"
operation.
deriveRange
protected NumberRange deriveRange(NumberRange[] ranges,
OperationJAI.Parameters parameters)
- Returns the expected range of values for the resulting image.
- Overrides:
deriveRange
in class OperationJAI
- Parameters:
ranges
- The range of values from every sources. For unary operations like
"GradientMagnitude"
, 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.
- Returns:
- The range of values to use in the destination image, or
null
if unknow.
Copyright © 1996-2010 Geotools. All Rights Reserved.