Package org.esa.snap.core.image
Class FillConstantOpImage
- java.lang.Object
-
- javax.media.jai.PlanarImage
-
- javax.media.jai.OpImage
-
- javax.media.jai.PointOpImage
-
- org.esa.snap.core.image.FillConstantOpImage
-
- All Implemented Interfaces:
RenderedImage
,javax.media.jai.ImageJAI
,javax.media.jai.PropertyChangeEmitter
,javax.media.jai.PropertySource
,javax.media.jai.WritablePropertySource
public final class FillConstantOpImage extends javax.media.jai.PointOpImage
An image to replace values in the source image controlled by a mask.
-
-
Constructor Summary
Constructors Constructor Description FillConstantOpImage(RenderedImage sourceImage, RenderedImage maskImage, Number fillValue)
Where the mask image is set the original values in the source image are preserved.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect)
-
Methods inherited from class javax.media.jai.PointOpImage
computeTile, dispose, isColormapOperation, mapDestRect, mapSourceRect, permitInPlaceOperation
-
Methods inherited from class javax.media.jai.OpImage
addTileToCache, cancelTiles, computeRect, computesUniqueTiles, createTile, 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, toString, wrapRenderedImage, XToTileX, XToTileX, YToTileY, YToTileY
-
-
-
-
Constructor Detail
-
FillConstantOpImage
public FillConstantOpImage(RenderedImage sourceImage, RenderedImage maskImage, Number fillValue)
Where the mask image is set the original values in the source image are preserved. Otherwise the values are replaced by the no-data value.- Parameters:
sourceImage
- The source image.maskImage
- The mask image. This mask prevents pixel values from being overwritten by fill value (where mask != 0).fillValue
- The value to replace the original ones.
-
-
Method Detail
-
computeRect
protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect)
- Overrides:
computeRect
in classjavax.media.jai.OpImage
-
-