it.geosolutions.jaiext.algebra
Class AlgebraOpImage2

java.lang.Object
  extended by javax.media.jai.PlanarImage
      extended by javax.media.jai.OpImage
          extended by javax.media.jai.PointOpImage
              extended by it.geosolutions.jaiext.algebra.AlgebraOpImage2
All Implemented Interfaces:
RenderedImage, javax.media.jai.ImageJAI, javax.media.jai.PropertyChangeEmitter, javax.media.jai.PropertySource, javax.media.jai.WritablePropertySource

public final class AlgebraOpImage2
extends javax.media.jai.PointOpImage

OLDER VERSION OF THE AlgebraOpImage CLASS USED ONLY FOR FUTURE OPTIMIZATIONS


Field Summary
 
Fields inherited from class javax.media.jai.OpImage
cache, cobbleSources, OP_COMPUTE_BOUND, OP_IO_BOUND, OP_NETWORK_BOUND, tileCacheMetric, tileRecycler
 
Fields inherited from class javax.media.jai.PlanarImage
colorModel, eventManager, height, minX, minY, properties, sampleModel, tileFactory, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width
 
Constructor Summary
AlgebraOpImage2(Map config, javax.media.jai.ImageLayout layout, AlgebraDescriptor.Operator op, javax.media.jai.ROI srcROI, Range noData, double destinationNoData, RenderedImage... sources)
          Constructs an AddOpImage.
 
Method Summary
protected  void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect)
          Adds the pixel values of two source images within a specified rectangle.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlgebraOpImage2

public AlgebraOpImage2(Map config,
                       javax.media.jai.ImageLayout layout,
                       AlgebraDescriptor.Operator op,
                       javax.media.jai.ROI srcROI,
                       Range noData,
                       double destinationNoData,
                       RenderedImage... sources)
Constructs an AddOpImage.

The layout parameter may optionally contains the tile grid layout, sample model, and/or color model. The image dimension is determined by the intersection of the bounding boxes of the two source images.

The image layout of the first source image, source1, is used as the fall-back for the image layout of the destination image. Any layout parameters not specified in the layout argument are set to the same value as that of source1.

Parameters:
source1 - The first source image.
source2 - The second source image.
layout - The destination image layout.
useROIAccessor -
Method Detail

computeRect

protected void computeRect(Raster[] sources,
                           WritableRaster dest,
                           Rectangle destRect)
Adds the pixel values of two source images within a specified rectangle.

Overrides:
computeRect in class javax.media.jai.OpImage
Parameters:
sources - Cobbled sources, guaranteed to provide all the source data necessary for computing the rectangle.
dest - The tile containing the rectangle to be computed.
destRect - The rectangle within the tile to be computed.


Copyright © 2006–2015 GeoSolutions. All rights reserved.