org.geotoolkit.image.jai
Class NodataFilter
Object
PlanarImage
OpImage
AreaOpImage
NodataFilter
- All Implemented Interfaces:
- RenderedImage, ImageJAI, PropertyChangeEmitter, PropertySource, WritablePropertySource
public class NodataFilter
- extends AreaOpImage
Replaces Double.NaN values by the weighted average of neighbors values. This operation
uses a box of size × size pixels centered on each NaN value. The
weighted average is then computed, ignoring all NaN values. If the number of valid
values is greater than validityThreshold, then the center NaN is replaced
by the computed average. Otherwise, the NaN value is left unchanged.
- Since:
- 2.1
- Version:
- 3.00
- Author:
- Lionel Flahaut (IRD), Martin Desruisseaux (IRD)
- Module:
| Fields inherited from class PlanarImage |
colorModel, eventManager, height, minX, minY, properties, sampleModel, tileFactory, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width |
| Methods inherited from class OpImage |
addTileToCache, cancelTiles, computeRect, computesUniqueTiles, createTile, dispose, getExpandedNumBands, getFormatTags, getOperationComputeType, getTile, getTileCache, getTileCacheMetric, getTileDependencies, getTileFromCache, getTileRecycler, getTiles, hasExtender, mapDestPoint, mapSourcePoint, prefetchTiles, queueTiles, recycleTile, setTileCache, vectorize, vectorize, vectorize |
| Methods inherited from class PlanarImage |
addPropertyChangeListener, addPropertyChangeListener, addSink, addSink, addSource, addTileComputationListener, copyData, copyData, copyExtendedData, createColorModel, createSnapshot, createWritableRaster, finalize, getAsBufferedImage, getAsBufferedImage, getBounds, getColorModel, getData, getData, getDefaultColorModel, getExtendedData, getGraphics, getHeight, getImageID, getMaxTileX, getMaxTileY, getMaxX, getMaxY, getMinTileX, getMinTileY, getMinX, getMinY, getNumBands, getNumSources, getNumXTiles, getNumYTiles, getProperties, getProperty, getPropertyClass, getPropertyNames, getPropertyNames, getSampleModel, getSinks, getSource, getSourceImage, getSourceObject, getSplits, getTileComputationListeners, getTileFactory, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileIndices, getTileRect, getTiles, getTileWidth, getWidth, overlapsMultipleTiles, removeProperty, removePropertyChangeListener, removePropertyChangeListener, removeSink, removeSink, removeSinks, removeSource, removeSources, removeTileComputationListener, setImageLayout, setProperties, setProperty, setSource, setSources, tileXToX, tileXToX, tileYToY, tileYToY, toString, wrapRenderedImage, XToTileX, XToTileX, YToTileY, YToTileY |
OPERATION_NAME
public static final String OPERATION_NAME
- The name of this operation in the JAI registry.
This is "org.geotoolkit.NodataFilter".
- See Also:
- Constant Field Values
NodataFilter
public NodataFilter(RenderedImage source,
ImageLayout layout,
Map<?,?> configuration,
int padding,
int validityThreshold)
- Constructs a new operation. While this constructor is public, it should usually not be
invoked directly. You should use JAI factory methods instead.
- Parameters:
source - The source image.layout - The image layout.configuration - The image properties and rendering hints.padding - The number of pixel above, below, to the left and to the right of central
NaN pixel. The full box size is padding×2+1.validityThreshold - The minimal number of valid neighbors required in order to consider
the average as valid.
getSources
public Vector<RenderedImage> getSources()
- Returns the source images.
- Specified by:
getSources in interface RenderedImage- Overrides:
getSources in class PlanarImage
computeRect
protected void computeRect(PlanarImage[] sources,
WritableRaster dest,
Rectangle destRect)
- Computes a rectangle of outputs.
- Overrides:
computeRect in class OpImage
- Parameters:
sources - The source images. Should be an array of length 1.dest - The raster to be filled in.destRect - The region within the raster to be filled.
Copyright © 2009-2012 Geotoolkit.org. All Rights Reserved.