public class ZonalStatsOpImage
extends javax.media.jai.NullOpImage
Description of the algorithm and example| Constructor and Description |
|---|
ZonalStatsOpImage(RenderedImage dataImage,
RenderedImage zoneImage,
Map<?,?> config,
javax.media.jai.ImageLayout layout,
Statistic[] stats,
Integer[] bands,
javax.media.jai.ROI roi,
AffineTransform dataToZoneTransform,
Collection<Range<Double>> ranges,
Range.Type rangesType,
boolean rangeLocalStats,
Collection<Range<Double>> noDataRanges)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getProperty(String name)
Get the specified property.
|
Class<?> |
getPropertyClass(String name)
Get the class of the given property.
|
String[] |
getPropertyNames()
Get all property names
|
computesUniqueTiles, computeTile, getOperationComputeType, getPropertyNames, removeProperty, setPropertycancelTiles, getExpandedNumBands, getTile, getTileCache, getTileCacheMetric, getTileDependencies, getTileRecycler, getTiles, hasExtender, mapDestPoint, mapSourcePoint, prefetchTiles, queueTiles, setTileCacheaddPropertyChangeListener, addPropertyChangeListener, addSink, addTileComputationListener, copyData, copyData, copyExtendedData, createColorModel, createSnapshot, getAsBufferedImage, getAsBufferedImage, getBounds, getColorModel, getData, getData, getDefaultColorModel, getExtendedData, getGraphics, getHeight, getImageID, getMaxTileX, getMaxTileY, getMaxX, getMaxY, getMinTileX, getMinTileY, getMinX, getMinY, getNumBands, getNumSources, getNumXTiles, getNumYTiles, getSampleModel, getSinks, getSource, getSourceImage, getSourceObject, getSources, getSplits, getTileComputationListeners, getTileFactory, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileIndices, getTileRect, getTiles, getTileWidth, getWidth, overlapsMultipleTiles, removePropertyChangeListener, removePropertyChangeListener, removeSink, removeSinks, removeTileComputationListener, tileXToX, tileXToX, tileYToY, tileYToY, toString, wrapRenderedImage, XToTileX, XToTileX, YToTileY, YToTileYpublic ZonalStatsOpImage(RenderedImage dataImage, RenderedImage zoneImage, Map<?,?> config, javax.media.jai.ImageLayout layout, Statistic[] stats, Integer[] bands, javax.media.jai.ROI roi, AffineTransform dataToZoneTransform, Collection<Range<Double>> ranges, Range.Type rangesType, boolean rangeLocalStats, Collection<Range<Double>> noDataRanges)
dataImage - a RenderedImage from which data values will be read.zoneImage - an optional RenderedImage of integral data type that defines
the zones for which to calculate summary data.config - configurable attributes of the image (see AreaOpImage).layout - an optional ImageLayout object.stats - an array of Statistic constants specifying the data required.bands - the data image band to process.roi - an optional ROI for data image masking.dataToZoneTransform - an optional AffineTransform which maps data
image positions to zone image positionsranges - an optional list of Range objects defining values to include or
exclude (de pending on rangesType from the calculations; may be
null or emptyrangesType - specifies whether the ranges argument defines values
to include or excluderangeLocalStats - if true, the statistics should be computed for ranges,
separately.noDataRanges - an optional list of Range objects defining values to
treat as NODATAZonalStatsDescriptor,
Statisticpublic Object getProperty(String name)
Use this method to retrieve the calculated statistics as a map of ZonalStats per band
by setting name to ZonalStatsDescriptor.ZONAL_STATS_PROPERTY.
getProperty in interface RenderedImagegetProperty in interface javax.media.jai.PropertySourcegetProperty in class javax.media.jai.NullOpImagename - property namepublic Class<?> getPropertyClass(String name)
Map.class.getPropertyClass in interface javax.media.jai.PropertySourcegetPropertyClass in class javax.media.jai.NullOpImagename - property namepublic String[] getPropertyNames()
getPropertyNames in interface RenderedImagegetPropertyNames in interface javax.media.jai.PropertySourcegetPropertyNames in class javax.media.jai.NullOpImageCopyright © 2009–2018. All rights reserved.