uk.ac.essex.ia.media.jai
Class ImageInfoOp

java.lang.Object
  extended by javax.media.jai.PlanarImage
      extended by javax.media.jai.OpImage
          extended by javax.media.jai.StatisticsOpImage
              extended by uk.ac.essex.ia.media.jai.ImageInfoOp
All Implemented Interfaces:
java.awt.image.RenderedImage, javax.media.jai.ImageJAI, javax.media.jai.PropertyChangeEmitter, javax.media.jai.PropertySource, javax.media.jai.WritablePropertySource

public class ImageInfoOp
extends javax.media.jai.StatisticsOpImage

A JAI operator class to obtain information about an image

See Also:
You should have received a copy of GNU public license with this code. If not please visit this site

Field Summary
 
Fields inherited from class javax.media.jai.StatisticsOpImage
roi, xPeriod, xStart, yPeriod, yStart
 
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
ImageInfoOp(java.awt.image.RenderedImage source, int param1)
          Takes the source image and calls the superclass with this also constructs a GlobalStat object that computes all the available statistics once rather than compute them on demand seperately
 
Method Summary
protected  void accumulateStatistics(java.lang.String name, java.awt.image.Raster source, java.lang.Object stats)
          this function should gather the statistics but it uses the GlobalStats object which is created in the constructor
protected  java.lang.Object createStatistics(java.lang.String name)
          Creates the statistics object to store the statistics this is just an array whose size = number of bands of the image
protected  java.lang.String[] getStatisticsNames()
           
 
Methods inherited from class javax.media.jai.StatisticsOpImage
computesUniqueTiles, computeTile, getProperty, getPropertyNames, getTile, getTiles, mapDestRect, mapSourceRect
 
Methods inherited from class javax.media.jai.OpImage
addTileToCache, cancelTiles, computeRect, computeRect, createTile, dispose, getExpandedNumBands, getFormatTags, getOperationComputeType, getTileCache, getTileCacheMetric, getTileDependencies, getTileFromCache, getTileRecycler, 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, getPropertyClass, 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

ImageInfoOp

public ImageInfoOp(java.awt.image.RenderedImage source,
                   int param1)
Takes the source image and calls the superclass with this also constructs a GlobalStat object that computes all the available statistics once rather than compute them on demand seperately

Method Detail

createStatistics

protected java.lang.Object createStatistics(java.lang.String name)
Creates the statistics object to store the statistics this is just an array whose size = number of bands of the image

Specified by:
createStatistics in class javax.media.jai.StatisticsOpImage
Parameters:
name - - String name of the statistic value

getStatisticsNames

protected java.lang.String[] getStatisticsNames()
Specified by:
getStatisticsNames in class javax.media.jai.StatisticsOpImage

accumulateStatistics

protected void accumulateStatistics(java.lang.String name,
                                    java.awt.image.Raster source,
                                    java.lang.Object stats)
this function should gather the statistics but it uses the GlobalStats object which is created in the constructor

Specified by:
accumulateStatistics in class javax.media.jai.StatisticsOpImage