|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.jai.PlanarImage
javax.media.jai.OpImage
javax.media.jai.AreaOpImage
org.jaitools.media.jai.kernelstats.KernelStatsOpImage
public class KernelStatsOpImage
An operator to calculate neighbourhood statistics on a source image.
Description of the algorithm and example| Field Summary |
|---|
| Fields inherited from class javax.media.jai.AreaOpImage |
|---|
bottomPadding, extender, leftPadding, rightPadding, topPadding |
| 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 | |
|---|---|
KernelStatsOpImage(RenderedImage source,
javax.media.jai.BorderExtender extender,
Map config,
javax.media.jai.ImageLayout layout,
Statistic[] stats,
javax.media.jai.KernelJAI kernel,
int band,
javax.media.jai.ROI roi,
boolean maskSrc,
boolean maskDest,
boolean ignoreNaN,
Number nilValue)
Creates a new instance. |
|
| Method Summary | |
|---|---|
protected void |
computeRect(Raster[] sources,
WritableRaster dest,
Rectangle destRect)
Calculates neighbourhood statistics for a specified rectangle |
| Methods inherited from class javax.media.jai.AreaOpImage |
|---|
computeTile, getBorderExtender, getBottomPadding, getLeftPadding, getRightPadding, getTopPadding, mapDestRect, mapSourceRect |
| Methods inherited from class javax.media.jai.OpImage |
|---|
addTileToCache, cancelTiles, computeRect, computesUniqueTiles, createTile, dispose, 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 |
|---|
public KernelStatsOpImage(RenderedImage source,
javax.media.jai.BorderExtender extender,
Map config,
javax.media.jai.ImageLayout layout,
Statistic[] stats,
javax.media.jai.KernelJAI kernel,
int band,
javax.media.jai.ROI roi,
boolean maskSrc,
boolean maskDest,
boolean ignoreNaN,
Number nilValue)
source - the source imageextender - an optional BorderExtender or nullconfig - configurable attributes of the image (see AreaOpImage)layout - an optional ImageLayout object; if the layout specifies a SampleModel
and / or ColorModel that are invalid for the requested statistics (e.g. wrong
number of bands) these will be overriddenstats - an array of Statistic constantskernel - the convolution kernelband - the source image band to processroi - an optional ROI or nullignoreNaN - if true NaN values are ignored; otherwise any NaN
values in a pixels neighbourhood cause nilValue to be returnedmaskSrc - if true only neighbourhood pixels within the ROI
are used in calculationsmaskDest - if true, nilValue is returned for any pixels
outside the ROInilValue - value to return for pixels with no result
IllegalArgumentException - if the ROI's bounds do not contain the entire
source imageKernelStatsDescriptor,
Statistic| Method Detail |
|---|
protected void computeRect(Raster[] sources,
WritableRaster dest,
Rectangle destRect)
computeRect in class javax.media.jai.OpImagesources - source rasters (only sources[0] is used here)dest - a WritableRaster tile containing the area to be computed.destRect - the rectangle within dest to be processed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||