org.geotools.gce.imagemosaic.processing
Class ArtifactsFilterOpImage

Object
  extended by PlanarImage
      extended by OpImage
          extended by PointOpImage
              extended by ArtifactsFilterOpImage
All Implemented Interfaces:
RenderedImage, ImageJAI, PropertyChangeEmitter, PropertySource, WritablePropertySource

public final class ArtifactsFilterOpImage
extends PointOpImage

An Artifacts Filter operation. Given an input image and a ROI, transform the pixels along the inner BORDER of the ROI, if less than a specified Luminance threshold value, to a mean of all sourrounding pixels within ROI, having Luminance greater than threshold.

Author:
Daniele Romagnoli, GeoSolutions SAS, Simone Giannecchini, GeoSolutions SAS

Field Summary
 
Fields inherited from class OpImage
cache, cobbleSources, OP_COMPUTE_BOUND, OP_IO_BOUND, OP_NETWORK_BOUND, tileCacheMetric, tileRecycler
 
Fields inherited from class PlanarImage
colorModel, eventManager, height, minX, minY, properties, sampleModel, tileFactory, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width
 
Constructor Summary
ArtifactsFilterOpImage(RenderedImage source, ImageLayout layout, Map<?,?> config, ROI sourceROI, double[] backgroundValues, int threshold, int filterSize)
          Base constructor for a PixelRestorationOpImage
 
Method Summary
 Raster computeTile(int tileX, int tileY)
           
 void dispose()
           
 
Methods inherited from class PointOpImage
isColormapOperation, mapDestRect, mapSourceRect, permitInPlaceOperation
 
Methods inherited from class OpImage
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
 
Methods inherited from class 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, getProperty, getPropertyClass, getPropertyNames, 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 Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArtifactsFilterOpImage

public ArtifactsFilterOpImage(RenderedImage source,
                              ImageLayout layout,
                              Map<?,?> config,
                              ROI sourceROI,
                              double[] backgroundValues,
                              int threshold,
                              int filterSize)
Base constructor for a PixelRestorationOpImage

Parameters:
source - the input RenderedImage
layout - the optional ImageLayout
config -
sourceROI - a ROI representing pixels to be restored.
backgroundValues - the value of the background pixel values.
Method Detail

computeTile

public Raster computeTile(int tileX,
                          int tileY)
Overrides:
computeTile in class PointOpImage

dispose

public void dispose()
Overrides:
dispose in class PointOpImage


Copyright © 1996-2014 Geotools. All Rights Reserved.