org.geotools.coverage.processing
Class BilevelOperation

Object
  extended by AbstractOperation
      extended by Operation2D
          extended by OperationJAI
              extended by BilevelOperation
All Implemented Interfaces:
Serializable, Operation

public class BilevelOperation
extends OperationJAI

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

Since:
2.2
Author:
Martin Desruisseaux (IRD)
See Also:
Serialized Form
Module:
modules/library/coverage (gt-coverage.jar)

Nested Class Summary
 
Nested classes/interfaces inherited from class OperationJAI
OperationJAI.Parameters
 
Field Summary
 
Fields inherited from class OperationJAI
operation, RENDERED_MODE
 
Fields inherited from class Operation2D
PRIMARY_SOURCE_INDEX, SOURCE_0
 
Fields inherited from class AbstractOperation
descriptor
 
Constructor Summary
BilevelOperation(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 OperationJAI
createRenderedImage, deriveCategory, deriveGridCoverage, deriveName, deriveRange, deriveUnit, doOperation, equals, getJAI, getOperationDescriptor, getProperties, getQuantitative, prepareParameters, resampleToCommonGeometry
 
Methods inherited from class Operation2D
computeOnGeophysicsValues, extractSources, getFactory
 
Methods inherited from class AbstractOperation
ensureNonNull, getDescription, getDocURL, getName, getNumSources, getParameters, getProcessor, getVendor, getVersion, hashCode, toString
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BilevelOperation

public BilevelOperation(String name)
                 throws OperationNotFoundException
Constructs a bilevel operation with an OGC's name identical to the JAI name.

Parameters:
name - The JAI operation name.
Throws:
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.measure.unit.Unit[], org.geotools.coverage.processing.OperationJAI.Parameters)


Copyright © 1996-2009 Geotools. All Rights Reserved.