org.geotools.coverage.processing.operation
Class NodataFilter

java.lang.Object
  extended by org.geotools.coverage.processing.AbstractOperation
      extended by org.geotools.coverage.processing.Operation2D
          extended by org.geotools.coverage.processing.OperationJAI
              extended by org.geotools.coverage.processing.FilterOperation
                  extended by org.geotools.coverage.processing.operation.NodataFilter
All Implemented Interfaces:
java.io.Serializable, org.opengis.coverage.processing.Operation

public class NodataFilter
extends FilterOperation

Replaces NaN values by the weighted average of neighbors values. This operation uses a box of size×size pixels centered on each NaN value, where size = 2×padding+1 (the padding is the number of pixel above, below, to the left and to the right of central NaN pixel). The weighted average is then computed, ignoring all NaN values. If the number of valid values is greater than or equals to validityThreshold, then the center NaN is replaced by the computed average. Otherwise, the NaN value is left unchanged.

Name: "NodataFilter"
JAI operator: none
Parameters:

Name Class Default value Minimum value Maximum value
"Source" GridCoverage2D N/A N/A N/A
"padding" Integer 1 0 N/A
"validityThreshold" Integer 4 0 N/A

Since:
2.2
Version:
$Id: NodataFilter.java 30643 2008-06-12 18:27:03Z acuster $
Author:
Martin Desruisseaux (IRD)
See Also:
Operations.nodataFilter(GridCoverage,int,int), Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.geotools.coverage.processing.OperationJAI
OperationJAI.Parameters
 
Field Summary
 
Fields inherited from class org.geotools.coverage.processing.OperationJAI
operation, RENDERED_MODE
 
Fields inherited from class org.geotools.coverage.processing.Operation2D
PRIMARY_SOURCE_INDEX, SOURCE_0
 
Fields inherited from class org.geotools.coverage.processing.AbstractOperation
descriptor
 
Constructor Summary
NodataFilter()
          Constructs a default "NodataFilter" operation.
 
Method Summary
 
Methods inherited from class org.geotools.coverage.processing.FilterOperation
deriveSampleDimension
 
Methods inherited from class org.geotools.coverage.processing.OperationJAI
createRenderedImage, deriveCategory, deriveGridCoverage, deriveName, deriveRange, deriveUnit, doOperation, equals, getJAI, getOperationDescriptor, getProperties, getQuantitative, prepareParameters, resampleToCommonGeometry
 
Methods inherited from class org.geotools.coverage.processing.Operation2D
computeOnGeophysicsValues, extractSources, getFactory
 
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

NodataFilter

public NodataFilter()
Constructs a default "NodataFilter" operation.



Copyright © 1996-2010 Geotools. All Rights Reserved.