public class SimpleStatsOpImage extends StatisticsOpImage
Statistics.StatsType
class. A simple operation is an operation which not stores the pixel values into an array but only updates every time its
statistical parameters. These operations can be calculated together by adding entries in the definition array "statsTypes". A ROI object passed to
the constructor is taken into account by counting only the samples inside of it; an eventual No Data Range is considered by counting only values
that are not No Data. The statistical calculation is performed by calling the getProperty() method. The statistics are calculated for every image
tile and then the partial results are accumulated and passed to the getProperty() method. For avoiding unnecessary calculations the statistics can
be calculated only the first time; but if the user needs to re-calculate the statistics, they can be cleared with the clearStatistic() method and
then returned by calling again the getProperty() method.bands, bandsNumber, booleanLookupTable, caseA, caseB, caseC, firstTime, hasNoData, hasROI, noData, ROI_EXTENDER, roiBounds, selectedBands, srcROIImage, srcROIImgExt, statNum, stats, statsTypes, useROIAccessor, xPeriod, yPeriod
Constructor and Description |
---|
SimpleStatsOpImage(RenderedImage source,
int xPeriod,
int yPeriod,
javax.media.jai.ROI roi,
Range noData,
boolean useROIAccessor,
int[] bands,
Statistics.StatsType[] statsTypes) |
Modifier and Type | Method and Description |
---|---|
Raster |
computeTile(int tileX,
int tileY)
Returns a tile for reading.
|
byteLoop, clearStatistic, dispose, doubleLoop, floatLoop, getProperty, getPropertyNames, getTiles, intLoop, mapDestRect, mapSourceRect, shortLoop, ushortLoop
addTileToCache, cancelTiles, computeRect, computeRect, computesUniqueTiles, createTile, 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, getPropertyClass, getPropertyNames, getSampleModel, getSinks, getSource, getSourceImage, getSourceObject, getSources, getSplits, getTileComputationListeners, getTileFactory, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileIndices, getTileRect, 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 SimpleStatsOpImage(RenderedImage source, int xPeriod, int yPeriod, javax.media.jai.ROI roi, Range noData, boolean useROIAccessor, int[] bands, Statistics.StatsType[] statsTypes)
public Raster computeTile(int tileX, int tileY)
computeTile
in class javax.media.jai.OpImage
tileX
- The X index of the tile.tileY
- The Y index of the tile.Raster
.Copyright © 2006–2018 GeoSolutions. All rights reserved.