public class MaskedConvolveOpImage
extends javax.media.jai.AreaOpImage
Description of the algorithm and example| Modifier and Type | Field and Description |
|---|---|
static float |
KERNEL_TOL
The tolerance used when marking kernel cells as active
(ie.
|
bottomPadding, extender, leftPadding, rightPadding, topPadding| Constructor and Description |
|---|
MaskedConvolveOpImage(RenderedImage source,
javax.media.jai.BorderExtender extender,
Map config,
javax.media.jai.ImageLayout layout,
javax.media.jai.KernelJAI kernel,
javax.media.jai.ROI roi,
Boolean maskSrc,
Boolean maskDest,
Number nilValue,
int minCells,
Collection<Object> noDataValues,
Boolean strictNodata)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeRect(Raster[] sources,
WritableRaster dest,
Rectangle destRect)
Performs convolution on a specified rectangle.
|
computeTile, getBorderExtender, getBottomPadding, getLeftPadding, getRightPadding, getTopPadding, mapDestRect, mapSourceRectaddTileToCache, cancelTiles, computeRect, computesUniqueTiles, createTile, dispose, getExpandedNumBands, getFormatTags, getOperationComputeType, getTile, getTileCache, getTileCacheMetric, getTileDependencies, getTileFromCache, getTileRecycler, getTiles, hasExtender, mapDestPoint, mapSourcePoint, prefetchTiles, queueTiles, recycleTile, setTileCache, vectorize, vectorize, vectorizeaddPropertyChangeListener, 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, YToTileYpublic static final float KERNEL_TOL
public MaskedConvolveOpImage(RenderedImage source, javax.media.jai.BorderExtender extender, Map config, javax.media.jai.ImageLayout layout, javax.media.jai.KernelJAI kernel, javax.media.jai.ROI roi, Boolean maskSrc, Boolean maskDest, Number nilValue, int minCells, Collection<Object> noDataValues, Boolean strictNodata)
source - the source image to convolveextender - an optional BorderExtender, or nullconfig - configurable attributes of the image (see AreaOpImage)layout - an optional ImageLayout specifying destination image
parameters, or nullkernel - the convolution kernelroi - the ROI used to control masking; must contain the source image boundsmaskSrc - if true, exclude masked pixels (roi.contains == false) from
convolution kernel calculationmaskDest - if true, do not place kernel over masked pixels (dest will be 0)nilValue - value to write to the destination image for pixels where
there is no convolution resultminCells - the minimum number of non-zero kernel cells that be positioned over
unmasked source image cells for convolution to be performed for the target cellnoDataValues - option Collection of values and/or Ranges to
treat as NO_DATAstrictNodata - if true no convolution is performed for pixels with any
NO_DATA values in their neighbourhoodIllegalArgumentException - if the roi's bounds do not contain the entire
source imageprotected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect)
computeRect in class javax.media.jai.OpImagesources - an array of source Rasters, guaranteed to provide all
necessary source data for computing the output.dest - a WritableRaster tile containing the area to be computed.destRect - the rectangle within dest to be processed.Copyright © 2009–2020. All rights reserved.