org.geotools.coverage.processing
Class BilevelOperation

java.lang.Object
  extended byorg.geotools.coverage.processing.AbstractOperation
      extended byorg.geotools.coverage.processing.Operation2D
          extended byorg.geotools.coverage.processing.OperationJAI
              extended byorg.geotools.coverage.processing.BilevelOperation
All Implemented Interfaces:
org.opengis.coverage.processing.Operation, java.io.Serializable

public class BilevelOperation
extends OperationJAI

Wraps any JAI operation producing a bilevel image. An example of such operation is Binarize.

Since:
2.2
Version:
$Id: BilevelOperation.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.geotools.coverage.processing.OperationJAI
OperationJAI.Parameters
 
Field Summary
 
Fields inherited from class org.geotools.coverage.processing.OperationJAI
operation
 
Fields inherited from class org.geotools.coverage.processing.Operation2D
SOURCE_0
 
Fields inherited from class org.geotools.coverage.processing.AbstractOperation
descriptor
 
Constructor Summary
BilevelOperation(java.lang.String name)
          Constructs a bilevel operation with an OGC's name identical to the JAI name.
 
Method Summary
protected  GridSampleDimension[] deriveSampleDimension(GridSampleDimension[][] bandLists, OperationJAI.Parameters parameters)
          Derives the GridSampleDimensions for the destination image.
 
Methods inherited from class org.geotools.coverage.processing.OperationJAI
computeOnGeophysicsValues, createRenderedImage, deriveCategory, deriveGridCoverage, deriveName, deriveRange, deriveUnit, doOperation, equals, getJAI, resampleToCommonGeometry
 
Methods inherited from class org.geotools.coverage.processing.Operation2D
getFactory, getGridCoverageProcessor
 
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
 

Constructor Detail

BilevelOperation

public BilevelOperation(java.lang.String name)
                 throws org.opengis.coverage.processing.OperationNotFoundException
Constructs a bilevel operation with an OGC's name identical to the JAI name.

Parameters:
name - The JAI operation name.
Throws:
org.opengis.coverage.processing.OperationNotFoundException - if no JAI descriptor was found for the given name.
Method Detail

deriveSampleDimension

protected GridSampleDimension[] deriveSampleDimension(GridSampleDimension[][] bandLists,
                                                      OperationJAI.Parameters parameters)
Derives the GridSampleDimensions for the destination image.

Overrides:
deriveSampleDimension in class OperationJAI
Parameters:
bandLists - Sample dimensions for each band in each source coverages.
parameters - The user-supplied parameters.
Returns:
The sample dimensions for each band in the destination image.
See Also:
OperationJAI.deriveCategory(org.geotools.coverage.Category[], org.geotools.coverage.processing.OperationJAI.Parameters), OperationJAI.deriveUnit(javax.units.Unit[], org.geotools.coverage.processing.OperationJAI.Parameters)


Copyright © GeoTools. All Rights Reserved.