public class MosaicOpImage
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 MosaicOpimage 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 MosaicOpimage behavior is equal to that of
the old MosaicOpimage, 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 |
MosaicOpImage.WeightType
Enumerator for the type of mosaic weigher
|
Modifier and Type | Field and Description |
---|---|
protected byte[][][] |
byteLookupTable
Table used for checking no data values.
|
static double[] |
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 |
---|
MosaicOpImage(List sources,
javax.media.jai.ImageLayout layout,
Map renderingHints,
javax.media.jai.operator.MosaicType mosaicTypeSelected,
javax.media.jai.PlanarImage[] alphaImgs,
javax.media.jai.ROI[] rois,
double[][] thresholds,
double[] destinationNoData,
Range[] noDatas)
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 double[] DEFAULT_DESTINATION_NO_DATA_VALUE
protected byte[][][] byteLookupTable
public MosaicOpImage(List sources, javax.media.jai.ImageLayout layout, Map renderingHints, javax.media.jai.operator.MosaicType mosaicTypeSelected, javax.media.jai.PlanarImage[] alphaImgs, javax.media.jai.ROI[] rois, double[][] thresholds, double[] destinationNoData, Range[] noDatas)
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.