public abstract class BaseScaleOperationJAI extends OperationJAI
GridCoverage2D
objects using JAI scale
operations.
This class tries to handles all the problems related to scaling index-color images in order to avoid strange results in the smoothest possible way by performing color expansions under the hood as needed. It may also apply some optimizations in case we were dealing with non-geo view of coverage.
OperationJAI.Parameters
Modifier and Type | Field and Description |
---|---|
static String |
AFFINE |
static String |
ROI |
static String |
SCALE |
static String |
TRANSLATE |
static String |
WARP |
operation, RENDERED_MODE
PRIMARY_SOURCE_INDEX, SOURCE_0
descriptor
Constructor and Description |
---|
BaseScaleOperationJAI(OperationDescriptor operation)
Constructor for
BaseScaleOperationJAI . |
BaseScaleOperationJAI(OperationDescriptor operation,
ParameterDescriptorGroup descriptor)
Constructor for
BaseScaleOperationJAI . |
BaseScaleOperationJAI(String operation)
Constructor for
BaseScaleOperationJAI . |
Modifier and Type | Method and Description |
---|---|
protected GridCoverage2D |
deriveGridCoverage(GridCoverage2D[] sources,
OperationJAI.Parameters parameters)
Applies a JAI operation to a grid coverage.
|
createRenderedImage, deriveCategory, deriveName, deriveRange, deriveSampleDimension, deriveUnit, doOperation, equals, extractSources, getJAI, getOperationDescriptor, getProperties, getQuantitative, handleJAIEXTParams, handleROINoDataInternal, handleROINoDataProperties, hashCode, prepareParameters, resampleToCommonGeometry
extractSources, getFactory
getDescription, getDocURL, getName, getNumSources, getParameters, getVendor, getVersion, toString
public static final String AFFINE
public static final String SCALE
public static final String TRANSLATE
public static final String WARP
public static final String ROI
public BaseScaleOperationJAI(String operation) throws OperationNotFoundException
BaseScaleOperationJAI
.operation
- name of the JAI
operation we wrap.OperationNotFoundException
public BaseScaleOperationJAI(OperationDescriptor operation)
BaseScaleOperationJAI
.operation
- OperationDescriptor
of the JAI
operation we wrap.public BaseScaleOperationJAI(OperationDescriptor operation, ParameterDescriptorGroup descriptor)
BaseScaleOperationJAI
.operation
- OperationDescriptor
of the JAI
operation we wrap.descriptor
- protected GridCoverage2D deriveGridCoverage(GridCoverage2D[] sources, OperationJAI.Parameters parameters)
OperationJAI
OperationJAI.doOperation(org.opengis.parameter.ParameterValueGroup, org.geotools.util.factory.Hints)
. The default implementation performs the following steps:
deriveSampleDimension(...)
method.
OperationJAI.createRenderedImage(javax.media.jai.ParameterBlockJAI, java.awt.RenderingHints)
.
GridCoverage2D
object.
deriveGridCoverage
in class OperationJAI
sources
- The source coverages.parameters
- Parameters, rendering hints and coordinate reference system to use.OperationJAI.doOperation(org.opengis.parameter.ParameterValueGroup, org.geotools.util.factory.Hints)
,
OperationJAI.deriveSampleDimension(org.geotools.coverage.GridSampleDimension[][], org.geotools.coverage.processing.OperationJAI.Parameters)
,
JAI.createNS(java.lang.String, java.awt.image.renderable.ParameterBlock, java.awt.RenderingHints)
Copyright © 1996–2019 Geotools. All rights reserved.