org.geotools.coverage.processing.operation
Class Invert
java.lang.Object
org.geotools.coverage.processing.AbstractOperation
org.geotools.coverage.processing.Operation2D
org.geotools.coverage.processing.OperationJAI
org.geotools.coverage.processing.operation.Invert
- All Implemented Interfaces:
- java.io.Serializable, org.opengis.coverage.processing.Operation
public class Invert
- extends OperationJAI
Inverts the sample values of a coverage. For source coverages with signed data types,
the sample values of the destination coverage are defined by the pseudocode:
dst[x][y][b] = -src[x][y][b]
Name: "Invert"
JAI operator: "Invert"
Parameters:
Name |
Class |
Default value |
Minimum value |
Maximum value |
"Source" |
GridCoverage2D |
N/A |
N/A |
N/A |
- Since:
- 2.2
- Version:
- $Id: Invert.java 30643 2008-06-12 18:27:03Z acuster $
- Author:
- Martin Desruisseaux (IRD)
- See Also:
Operations.invert(org.opengis.coverage.Coverage)
,
InvertDescriptor
,
Serialized Form
Constructor Summary |
Invert()
Constructs a default "Invert" operation. |
Methods inherited from class org.geotools.coverage.processing.OperationJAI |
createRenderedImage, deriveCategory, deriveGridCoverage, deriveName, deriveSampleDimension, deriveUnit, doOperation, equals, getJAI, getOperationDescriptor, getProperties, getQuantitative, prepareParameters, resampleToCommonGeometry |
Methods inherited from class org.geotools.coverage.processing.AbstractOperation |
ensureNonNull, getDescription, getDocURL, getName, getNumSources, getParameters, getProcessor, getVendor, getVersion, hashCode, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Invert
public Invert()
- Constructs a default
"Invert"
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.