|
||||||||||
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.GeometricOpImage
it.geosolutions.jaiext.scale.ScaleOpImage
it.geosolutions.jaiext.scale.ScaleGeneralOpImage
public class ScaleGeneralOpImage
This class is an extends the functionality of the ScaleOpImage class by adding the support for No Data values and by extending the ROI support for all the image types and for binary images. The interpolation type performed by the scale operation is indicated by the Interpolation Object used. For Nearest-Neighbor, Bilinear, Bicubic/Bicubic2 interpolation type, the new Interpolation class InterpolationNearest, InterpolationBilinear, InterpolationBicubic should be used for having optimized calculation on the scale operation, ROI and No Data support. If these special Interpolation objects are not used, the interpolation is performed by using the interpolate() method of the interpolator used in the selected kernel, but without ROI and No Data support. Another main difference from the old Scale operations is the reduction of all the operations to one singular class instead of having various different classes.
Field Summary | |
---|---|
protected InterpolationBilinear |
interpB
Bilinear interpolator |
protected InterpolationBicubic |
interpBN
Bicubic interpolator |
protected InterpolationNearest |
interpN
Nearest-Neighbor interpolator |
Fields inherited from class javax.media.jai.GeometricOpImage |
---|
backgroundValues, computableBounds, extender, intBackgroundValues, interp, setBackground |
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 | |
---|---|
ScaleGeneralOpImage(RenderedImage source,
javax.media.jai.ImageLayout layout,
Map configuration,
javax.media.jai.BorderExtender extender,
InterpolationBicubic interp,
float scaleX,
float scaleY,
float transX,
float transY,
boolean useRoiAccessor)
|
|
ScaleGeneralOpImage(RenderedImage source,
javax.media.jai.ImageLayout layout,
Map configuration,
javax.media.jai.BorderExtender extender,
InterpolationBilinear interp,
float scaleX,
float scaleY,
float transX,
float transY,
boolean useRoiAccessor)
|
|
ScaleGeneralOpImage(RenderedImage source,
javax.media.jai.ImageLayout layout,
Map configuration,
javax.media.jai.BorderExtender extender,
javax.media.jai.Interpolation interp,
float scaleX,
float scaleY,
float transX,
float transY,
boolean useRoiAccessor)
|
|
ScaleGeneralOpImage(RenderedImage source,
javax.media.jai.ImageLayout layout,
Map configuration,
javax.media.jai.BorderExtender extender,
InterpolationNearest interp,
float scaleX,
float scaleY,
float transX,
float transY,
boolean useRoiAccessor)
|
Method Summary | |
---|---|
protected void |
computeRect(Raster[] sources,
WritableRaster dest,
Rectangle destRect)
This method executes the scale operation on a selected region of the image |
protected void |
computeRect(Raster[] sources,
WritableRaster dest,
Rectangle destRect,
Raster[] rois)
|
Methods inherited from class it.geosolutions.jaiext.scale.ScaleOpImage |
---|
backwardMapRect, computeTile, dispose, forwardMapRect, mapDestPoint, mapSourcePoint, preComputePositionsFloat, preComputePositionsInt |
Methods inherited from class javax.media.jai.GeometricOpImage |
---|
getBorderExtender, getInterpolation, mapDestRect, mapSourceRect |
Methods inherited from class javax.media.jai.OpImage |
---|
addTileToCache, cancelTiles, computeRect, computesUniqueTiles, createTile, getExpandedNumBands, getFormatTags, getOperationComputeType, getTile, getTileCache, getTileCacheMetric, getTileDependencies, getTileFromCache, getTileRecycler, getTiles, hasExtender, 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, 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 java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected InterpolationNearest interpN
protected InterpolationBilinear interpB
protected InterpolationBicubic interpBN
Constructor Detail |
---|
public ScaleGeneralOpImage(RenderedImage source, javax.media.jai.ImageLayout layout, Map configuration, javax.media.jai.BorderExtender extender, javax.media.jai.Interpolation interp, float scaleX, float scaleY, float transX, float transY, boolean useRoiAccessor)
public ScaleGeneralOpImage(RenderedImage source, javax.media.jai.ImageLayout layout, Map configuration, javax.media.jai.BorderExtender extender, InterpolationNearest interp, float scaleX, float scaleY, float transX, float transY, boolean useRoiAccessor)
public ScaleGeneralOpImage(RenderedImage source, javax.media.jai.ImageLayout layout, Map configuration, javax.media.jai.BorderExtender extender, InterpolationBilinear interp, float scaleX, float scaleY, float transX, float transY, boolean useRoiAccessor)
public ScaleGeneralOpImage(RenderedImage source, javax.media.jai.ImageLayout layout, Map configuration, javax.media.jai.BorderExtender extender, InterpolationBicubic interp, float scaleX, float scaleY, float transX, float transY, boolean useRoiAccessor)
Method Detail |
---|
protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect)
computeRect
in class javax.media.jai.OpImage
protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect, Raster[] rois)
computeRect
in class ScaleOpImage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |