public class MosaicOpImage2
extends javax.media.jai.OpImage
RenderedImage
and creates a mosaic of them. If the image pixels are No Data values, they are not
calculated and the MosaicOpImage2 searches for the pixels of the other source images in the same location. If all the pixels in the same
location are No Data, the destination image pixel will be a destination No Data value. This feature is combined with the ROI support and alpha
channel support(leaved unchanged). No Data support has been added both in the BLEND and OVERLAY mosaic type. The MosaicOpImage2 behavior is
equal to that of the old MosaicOpImage2, the only difference is the No Data support. The input values of the first one are different because a Java
Bean is used for storing all of them in a unique block instead of different variables as the second one. This Java Bean is described in the
ImageMosaicBean class. Inside this class, other Java Beans are used for simplifying the image data transport between the various method.Modifier and Type | Class and Description |
---|---|
static class |
MosaicOpImage2.WeightType
Enumerator for the type of mosaic weigher
|
Modifier and Type | Field and Description |
---|---|
static Number[] |
DEFAULT_DESTINATION_NO_DATA_VALUE
Default value for the destination image if every pixel in the same location is a no data
|
Constructor and Description |
---|
MosaicOpImage2(List sources,
javax.media.jai.ImageLayout layout,
Map renderingHints,
ImageMosaicBean[] images,
javax.media.jai.operator.MosaicType mosaicTypeSelected,
Number[] destinationNoData)
This constructor takes the source images, the layout, the rendering hints, and the parameters and initialize variables.
|
Modifier and Type | Method and Description |
---|---|
Raster |
computeTile(int tileX,
int tileY)
This method overrides the OpImage compute tile method and calculates the mosaic operation for the selected tile.
|
Rectangle |
mapDestRect(Rectangle destRectangle,
int sourceRasterIndex) |
Rectangle |
mapSourceRect(Rectangle sourceRectangle,
int sourceRasterIndex) |
addTileToCache, cancelTiles, computeRect, computeRect, computesUniqueTiles, 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, toString, wrapRenderedImage, XToTileX, XToTileX, YToTileY, YToTileY
public static final Number[] DEFAULT_DESTINATION_NO_DATA_VALUE
public MosaicOpImage2(List sources, javax.media.jai.ImageLayout layout, Map renderingHints, ImageMosaicBean[] images, javax.media.jai.operator.MosaicType mosaicTypeSelected, Number[] destinationNoData)
public Raster computeTile(int tileX, int tileY)
computeTile
in class javax.media.jai.OpImage
public Rectangle mapDestRect(Rectangle destRectangle, int sourceRasterIndex)
mapDestRect
in class javax.media.jai.OpImage
Copyright © 2006–2015 GeoSolutions. All rights reserved.