Package org.eclipse.imagen.media.rescale
Class RescaleOpImage
Object
PlanarImage
OpImage
PointOpImage
RescaleOpImage
- All Implemented Interfaces:
RenderedImage,ImageImageN,PropertyChangeEmitter,PropertySource,WritablePropertySource
This class is used for rescaling the source image pixels with the given scale and offset factors. At the
instantiation time this class checks if the input parameters are suitable for the Rescale operation. If the image
data type is Byte, the rescale operation on every pixel value is pre-calculated and stored inside a byte array and
the rescaling is effectively a simple lookup operation. For the other data types the Rescale operation is performed
at runtime. The rescale operation is executed for each tile independently. If input ROI or NoData values are founded,
then they are not rescaled, but the input destination No Data value is returned.
-
Field Summary
Fields inherited from class OpImage
OP_COMPUTE_BOUND, OP_IO_BOUND, OP_NETWORK_BOUND -
Constructor Summary
ConstructorsConstructorDescriptionRescaleOpImage(RenderedImage source, ImageLayout layout, Map configuration, double[] valueScale, double[] valueOffsets, double destinationNoData, ROI roi, Range noData, boolean useROIAccessor) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Disposes of any remaining tiles in theTileCache.Methods inherited from class PointOpImage
computeTile, mapDestRect, mapSourceRectMethods inherited from class OpImage
cancelTiles, computesUniqueTiles, getExpandedNumBands, getOperationComputeType, getTile, getTileCache, getTileCacheMetric, getTileDependencies, getTileRecycler, getTiles, hasExtender, mapDestPoint, mapSourcePoint, prefetchTiles, queueTiles, setTileCacheMethods inherited from class PlanarImage
addPropertyChangeListener, 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, 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, removeSinks, removeTileComputationListener, setProperty, tileXToX, tileXToX, tileYToY, tileYToY, toString, wrapRenderedImage, XToTileX, XToTileX, YToTileY, YToTileY
-
Constructor Details
-
RescaleOpImage
public RescaleOpImage(RenderedImage source, ImageLayout layout, Map configuration, double[] valueScale, double[] valueOffsets, double destinationNoData, ROI roi, Range noData, boolean useROIAccessor)
-
-
Method Details
-
dispose
public void dispose()Description copied from class:PointOpImageDisposes of any remaining tiles in theTileCache.If
cacheis non-null, in place operation is enabled, andtileRecycleris non-null, then all tiles owned by this specific image are removed from the cache. Subsequent to thissuper.dispose()is invoked.- Overrides:
disposein classPointOpImage
-