|
||||||||||
| 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.PointOpImage
javax.media.jai.NullOpImage
org.jaitools.media.jai.classifiedstats.ClassifiedStatsOpImage
public class ClassifiedStatsOpImage
Calculates image classified summary statistics for a data image.
for Description of the algorithm and example| Field Summary |
|---|
| Fields inherited from class javax.media.jai.NullOpImage |
|---|
computeType |
| 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 | |
|---|---|
ClassifiedStatsOpImage(RenderedImage dataImage,
RenderedImage[] classifierImages,
RenderedImage[] pivotClassifierImages,
Map<?,?> config,
javax.media.jai.ImageLayout layout,
Statistic[] stats,
Integer[] bands,
javax.media.jai.ROI roi,
Collection<Range<Double>> ranges,
Range.Type rangesType,
boolean rangeLocalStats,
Collection<Range<Double>> noDataRanges,
Double[] noDataClassifiers,
Double[] noDataPivotClassifiers)
Constructor. |
|
| Method Summary | |
|---|---|
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 |
protected StreamingSampleStats |
setupStats(Map<org.apache.commons.collections.keyvalue.MultiKey,StreamingSampleStats> resultsPerBand,
org.apache.commons.collections.keyvalue.MultiKey classifierKey,
Range.Type rangesType,
List<Range<Double>> ranges)
Called by #compileClassifiedStatistics() to lazily create a
StreamingSampleStats object for each classifier. |
| Methods inherited from class javax.media.jai.NullOpImage |
|---|
computesUniqueTiles, computeTile, getOperationComputeType, getProperties, getPropertyNames, removeProperty, setProperties, setProperty |
| Methods inherited from class javax.media.jai.PointOpImage |
|---|
dispose, isColormapOperation, mapDestRect, mapSourceRect, permitInPlaceOperation |
| Methods inherited from class javax.media.jai.OpImage |
|---|
addTileToCache, cancelTiles, computeRect, computeRect, createTile, getExpandedNumBands, getFormatTags, 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, getSampleModel, getSinks, getSource, getSourceImage, getSourceObject, getSources, getSplits, getTileComputationListeners, getTileFactory, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileIndices, getTileRect, getTiles, getTileWidth, getWidth, overlapsMultipleTiles, removePropertyChangeListener, removePropertyChangeListener, removeSink, removeSink, removeSinks, removeSource, removeSources, removeTileComputationListener, setImageLayout, 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 ClassifiedStatsOpImage(RenderedImage dataImage,
RenderedImage[] classifierImages,
RenderedImage[] pivotClassifierImages,
Map<?,?> config,
javax.media.jai.ImageLayout layout,
Statistic[] stats,
Integer[] bands,
javax.media.jai.ROI roi,
Collection<Range<Double>> ranges,
Range.Type rangesType,
boolean rangeLocalStats,
Collection<Range<Double>> noDataRanges,
Double[] noDataClassifiers,
Double[] noDataPivotClassifiers)
dataImage - a RenderedImage from which data values will be read.classifierImages - a RenderedImage's array of integral data type that
defines the classification for which to calculate summary
data.pivotClassifierImages - an optional RenderedImage's array of integral data type that
defines the pivot classification for which to calculate summary
data. Elements of this array are used to form group with the standard
classifiers. As an instance, suppose the classifiers are [classifier1,
classifier2] and the pivot classifiers are [pivot1, pivot2], then the
stats will be computed on classifiers [pivot1, classifier1, classifier2]
and [pivot2, classifier1, classifier2].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.ranges - an optional list of Range objects defining values to
include or exclude (depending 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 NODATAnoDataClassifiers - an optional array of Doubles defining values to
treat as NODATA for the related classifierImage. Note that
classifier images will always leverage on integer types
(BYTE, INTEGER, SHORT, ...). Such noData are specified
as Double to allow the users to provide NaN in case a NoData
is unavailable for a specific classifierImage.noDataPivotClassifiers - an optional array of Doubles defining values to
treat as NODATA for the related pivotClassifierImage. Note that
classifier images will always leverage on integer types
(BYTE, INTEGER, SHORT, ...). Such noData are specified
as Double to allow the users to provide NaN in case a NoData
is unavailable for a specific pivotClassifierImage.ClassifiedStatsDescriptor,
Statistic| Method Detail |
|---|
protected StreamingSampleStats setupStats(Map<org.apache.commons.collections.keyvalue.MultiKey,StreamingSampleStats> resultsPerBand,
org.apache.commons.collections.keyvalue.MultiKey classifierKey,
Range.Type rangesType,
List<Range<Double>> ranges)
#compileClassifiedStatistics() to lazily create a
StreamingSampleStats object for each classifier. The new object
is added to the provided resultsPerBand Map.
resultsPerBand - Map of results by classifierclassifierKey - the classifier key referring to this statisticrangesType - the range typeranges - a List of Range to be added to these stats.
StreamingSampleStats objectpublic Object getProperty(String name)
Use this method to retrieve the calculated statistics as a map of
ClassifiedStats per band by setting name to
ClassifiedStatsDescriptor.CLASSIFIED_STATS_PROPERTY.
getProperty in interface RenderedImagegetProperty in interface javax.media.jai.PropertySourcegetProperty in class javax.media.jai.NullOpImagename - property name
public Class<?> getPropertyClass(String name)
Map.class.
getPropertyClass in interface javax.media.jai.PropertySourcegetPropertyClass in class javax.media.jai.NullOpImagename - property name
public String[] getPropertyNames()
getPropertyNames in interface RenderedImagegetPropertyNames in interface javax.media.jai.PropertySourcegetPropertyNames in class javax.media.jai.NullOpImage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||