public class ComplexStatsOpImage extends StatisticsOpImage
Statistics.StatsType
class. A comples operation is an operation which stores the pixel values into an array. 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 but the results are saved into only one global
container. For avoiding to compromise the thread-safety of the class, every statistics object should handle concurrent threads. At the end of the
calculation the statistics container is passed to the getProperty() method as a Result. For avoiding unnecessary operations 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 |
---|
ComplexStatsOpImage(RenderedImage source,
int xPeriod,
int yPeriod,
javax.media.jai.ROI roi,
Range noData,
boolean useROIAccessor,
int[] bands,
Statistics.StatsType[] statsTypes,
double[] minBound,
double[] maxBound,
int[] numBins) |
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 ComplexStatsOpImage(RenderedImage source, int xPeriod, int yPeriod, javax.media.jai.ROI roi, Range noData, boolean useROIAccessor, int[] bands, Statistics.StatsType[] statsTypes, double[] minBound, double[] maxBound, int[] numBins)
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–2015 GeoSolutions. All rights reserved.