Package org.esa.snap.core.image
Class RasterDataNodeSampleOpImage
- java.lang.Object
-
- javax.media.jai.PlanarImage
-
- javax.media.jai.OpImage
-
- javax.media.jai.SourcelessOpImage
-
- org.esa.snap.core.image.SingleBandedOpImage
-
- org.esa.snap.core.image.RasterDataNodeOpImage
-
- org.esa.snap.core.image.RasterDataNodeSampleOpImage
-
- All Implemented Interfaces:
RenderedImage,javax.media.jai.ImageJAI,javax.media.jai.PropertyChangeEmitter,javax.media.jai.PropertySource,javax.media.jai.WritablePropertySource
public abstract class RasterDataNodeSampleOpImage extends RasterDataNodeOpImage
AnRasterDataNodeOpImagethat computes its sample values independently of each other.- Since:
- BEAM 4.9
-
-
Constructor Summary
Constructors Constructor Description RasterDataNodeSampleOpImage(RasterDataNode rasterDataNode, ResolutionLevel level)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcomputeProductData(ProductData productData, Rectangle destRect)Computes the target pixel data for this level image.protected abstract doublecomputeSample(int sourceX, int sourceY)Computes the sample value at the given source pixel coordinatessourceXandsourceY.-
Methods inherited from class org.esa.snap.core.image.RasterDataNodeOpImage
computeRect, copyLine, getGeophysicalProductData, getRasterDataNode, getRawProductData, getSourceCoords, toString
-
Methods inherited from class org.esa.snap.core.image.SingleBandedOpImage
computeRect, createNoDataRaster, getLevel, getLevelImageSupport, getScale, getSourceCoord, getSourceHeight, getSourceWidth, getSourceX, getSourceY
-
Methods inherited from class javax.media.jai.SourcelessOpImage
computesUniqueTiles, computeTile, mapDestRect, mapSourceRect
-
Methods inherited from class javax.media.jai.OpImage
addTileToCache, cancelTiles, 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 javax.media.jai.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, 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
-
-
-
-
Constructor Detail
-
RasterDataNodeSampleOpImage
public RasterDataNodeSampleOpImage(RasterDataNode rasterDataNode, ResolutionLevel level)
-
-
Method Detail
-
computeProductData
protected void computeProductData(ProductData productData, Rectangle destRect) throws IOException
Description copied from class:RasterDataNodeOpImageComputes the target pixel data for this level image.- Specified by:
computeProductDatain classRasterDataNodeOpImage- Parameters:
productData- The target pixel buffer to write to. The number of elements in this buffer will always beregion.width * region.height.destRect- The target region in pixel coordinates valid for this image level.- Throws:
IOException- May be thrown if an I/O error occurs during the computation.
-
computeSample
protected abstract double computeSample(int sourceX, int sourceY)Computes the sample value at the given source pixel coordinatessourceXandsourceY.- Parameters:
sourceX- The source pixel X coordinate of the sample to be computed.sourceY- The source pixel Y coordinate of the sample to be computed.- Returns:
- The sample value.
-
-