Package org.esa.snap.core.image
Class AbstractMosaicSubsetMultiLevelSource
- java.lang.Object
-
- com.bc.ceres.glevel.support.AbstractMultiLevelSource
-
- org.esa.snap.core.image.AbstractMosaicSubsetMultiLevelSource
-
- All Implemented Interfaces:
MultiLevelSource
- Direct Known Subclasses:
AbstractMatrixMosaicSubsetMultiLevelSource
public abstract class AbstractMosaicSubsetMultiLevelSource extends AbstractMultiLevelSource
Created by jcoravu on 11/12/2019.
-
-
Field Summary
Fields Modifier and Type Field Description protected RectangleimageReadBoundsprotected TileImageDisposertileImageDisposerprotected DimensiontileSize-
Fields inherited from interface com.bc.ceres.glevel.MultiLevelSource
NULL
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractMosaicSubsetMultiLevelSource(int levelCount, Rectangle imageReadBounds, Dimension tileSize, AffineTransform imageToModelTransform)protectedAbstractMosaicSubsetMultiLevelSource(int levelCount, Rectangle imageReadBounds, Dimension tileSize, GeoCoding geoCoding)protectedAbstractMosaicSubsetMultiLevelSource(Rectangle imageReadBounds, Dimension tileSize, AffineTransform imageToModelTransform)protectedAbstractMosaicSubsetMultiLevelSource(Rectangle imageReadBounds, Dimension tileSize, GeoCoding geoCoding)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected <TileDataType>
List<RenderedImage>buildDecompressedTileImages(Rectangle imageCellReadBounds, DecompressedImageSupport decompressedImageSupport, int defaultImageWidth, float translateLevelOffsetX, float translateLevelOffsetY, DecompressedTileOpImageCallback<TileDataType> tileOpImageCallback, TileDataType tileData)protected abstract javax.media.jai.ImageLayoutbuildMosaicImageLayout(int level)protected javax.media.jai.RenderedOpbuildMosaicOp(int level, List<RenderedImage> tileImages, boolean canCreateSourceROI)protected <TileDataType>
List<RenderedImage>buildUncompressedTileImages(int level, Rectangle imageCellReadBounds, int uncompressedTileWidth, int uncompressedTileHeight, float translateLevelOffsetX, float translateLevelOffsetY, UncompressedTileOpImageCallback<TileDataType> tileOpImageCallback, TileDataType tileData)protected intcomputeLevelTotalImageHeight(int level)protected intcomputeLevelTotalImageWidth(int level)protected static intcomputeTopLeftDecompressedTileHeight(Rectangle imageCellReadBounds, int decompressedTileHeight)protected static intcomputeTopLeftDecompressedTileWidth(Rectangle imageCellReadBounds, int decompressedTileWidth)protected static intcomputeTopLeftUncompressedTileHeight(Rectangle imageCellReadBounds, int uncompressedTileHeight)protected static intcomputeTopLeftUncompressedTileWidth(Rectangle imageCellReadBounds, int uncompressedTileWidth)protected static floatcomputeTranslateDifference(float levelTranslateOffset, int levelCellImageSize, int levelTotalImageSize, int cellIndex, int lastCellIndex, int level)protected double[]getMosaicOpBackgroundValues()protected double[][]getMosaicOpSourceThreshold()voidreset()Removes all cached level images and also disposes anyPlanarImages among them.-
Methods inherited from class com.bc.ceres.glevel.support.AbstractMultiLevelSource
checkLevel, createImage, getImage, getImageShape, getModel
-
-
-
-
Field Detail
-
imageReadBounds
protected final Rectangle imageReadBounds
-
tileSize
protected final Dimension tileSize
-
tileImageDisposer
protected final TileImageDisposer tileImageDisposer
-
-
Constructor Detail
-
AbstractMosaicSubsetMultiLevelSource
protected AbstractMosaicSubsetMultiLevelSource(Rectangle imageReadBounds, Dimension tileSize, GeoCoding geoCoding)
-
AbstractMosaicSubsetMultiLevelSource
protected AbstractMosaicSubsetMultiLevelSource(Rectangle imageReadBounds, Dimension tileSize, AffineTransform imageToModelTransform)
-
AbstractMosaicSubsetMultiLevelSource
protected AbstractMosaicSubsetMultiLevelSource(int levelCount, Rectangle imageReadBounds, Dimension tileSize, GeoCoding geoCoding)
-
AbstractMosaicSubsetMultiLevelSource
protected AbstractMosaicSubsetMultiLevelSource(int levelCount, Rectangle imageReadBounds, Dimension tileSize, AffineTransform imageToModelTransform)
-
-
Method Detail
-
buildMosaicImageLayout
protected abstract javax.media.jai.ImageLayout buildMosaicImageLayout(int level)
-
reset
public void reset()
Description copied from class:AbstractMultiLevelSourceRemoves all cached level images and also disposes anyPlanarImages among them.Overrides should always call
super.reset().- Specified by:
resetin interfaceMultiLevelSource- Overrides:
resetin classAbstractMultiLevelSource
-
buildDecompressedTileImages
protected final <TileDataType> List<RenderedImage> buildDecompressedTileImages(Rectangle imageCellReadBounds, DecompressedImageSupport decompressedImageSupport, int defaultImageWidth, float translateLevelOffsetX, float translateLevelOffsetY, DecompressedTileOpImageCallback<TileDataType> tileOpImageCallback, TileDataType tileData)
-
buildUncompressedTileImages
protected final <TileDataType> List<RenderedImage> buildUncompressedTileImages(int level, Rectangle imageCellReadBounds, int uncompressedTileWidth, int uncompressedTileHeight, float translateLevelOffsetX, float translateLevelOffsetY, UncompressedTileOpImageCallback<TileDataType> tileOpImageCallback, TileDataType tileData)
-
computeLevelTotalImageWidth
protected final int computeLevelTotalImageWidth(int level)
-
computeLevelTotalImageHeight
protected final int computeLevelTotalImageHeight(int level)
-
buildMosaicOp
protected final javax.media.jai.RenderedOp buildMosaicOp(int level, List<RenderedImage> tileImages, boolean canCreateSourceROI)
-
getMosaicOpBackgroundValues
protected double[] getMosaicOpBackgroundValues()
-
getMosaicOpSourceThreshold
protected double[][] getMosaicOpSourceThreshold()
-
computeTranslateDifference
protected static float computeTranslateDifference(float levelTranslateOffset, int levelCellImageSize, int levelTotalImageSize, int cellIndex, int lastCellIndex, int level)
-
computeTopLeftDecompressedTileHeight
protected static int computeTopLeftDecompressedTileHeight(Rectangle imageCellReadBounds, int decompressedTileHeight)
-
computeTopLeftDecompressedTileWidth
protected static int computeTopLeftDecompressedTileWidth(Rectangle imageCellReadBounds, int decompressedTileWidth)
-
computeTopLeftUncompressedTileWidth
protected static int computeTopLeftUncompressedTileWidth(Rectangle imageCellReadBounds, int uncompressedTileWidth)
-
computeTopLeftUncompressedTileHeight
protected static int computeTopLeftUncompressedTileHeight(Rectangle imageCellReadBounds, int uncompressedTileHeight)
-
-