public abstract class RasterDataNodeSampleOpImage extends RasterDataNodeOpImage
RasterDataNodeOpImage
that computes its sample values independently of each other.Constructor and Description |
---|
RasterDataNodeSampleOpImage(RasterDataNode rasterDataNode,
ResolutionLevel level) |
Modifier and Type | Method and Description |
---|---|
protected void |
computeProductData(ProductData productData,
Rectangle destRect)
Computes the target pixel data for this level image.
|
protected abstract double |
computeSample(int sourceX,
int sourceY)
Computes the sample value at the given source pixel coordinates
sourceX and sourceY . |
computeRect, copyLine, getGeophysicalProductData, getRasterDataNode, getRawProductData, getSourceCoords, toString
computeRect, createNoDataRaster, getLevel, getLevelImageSupport, getScale, getSourceCoord, getSourceHeight, getSourceWidth, getSourceX, getSourceY
computesUniqueTiles, computeTile, mapDestRect, mapSourceRect
addTileToCache, cancelTiles, createTile, dispose, getExpandedNumBands, getFormatTags, getOperationComputeType, getTile, getTileCache, getTileCacheMetric, getTileDependencies, getTileFromCache, getTileRecycler, getTiles, hasExtender, mapDestPoint, mapSourcePoint, prefetchTiles, queueTiles, recycleTile, setTileCache, vectorize, vectorize, vectorize
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, getSources, 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, wrapRenderedImage, XToTileX, XToTileX, YToTileY, YToTileY
public RasterDataNodeSampleOpImage(RasterDataNode rasterDataNode, ResolutionLevel level)
protected void computeProductData(ProductData productData, Rectangle destRect) throws IOException
RasterDataNodeOpImage
computeProductData
in class RasterDataNodeOpImage
productData
- The target pixel buffer to write to. The number of elements in this buffer will always be
region.width * region.height
.destRect
- The target region in pixel coordinates valid for this image level.IOException
- May be thrown if an I/O error occurs during the computation.protected abstract double computeSample(int sourceX, int sourceY)
sourceX
and sourceY
.sourceX
- The source pixel X coordinate of the sample to be computed.sourceY
- The source pixel Y coordinate of the sample to be computed.Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.