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 Rectangle
imageReadBounds
protected TileImageDisposer
tileImageDisposer
protected Dimension
tileSize
-
Fields inherited from interface com.bc.ceres.glevel.MultiLevelSource
NULL
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractMosaicSubsetMultiLevelSource(int levelCount, Rectangle imageReadBounds, Dimension tileSize, AffineTransform imageToModelTransform)
protected
AbstractMosaicSubsetMultiLevelSource(int levelCount, Rectangle imageReadBounds, Dimension tileSize, GeoCoding geoCoding)
protected
AbstractMosaicSubsetMultiLevelSource(Rectangle imageReadBounds, Dimension tileSize, AffineTransform imageToModelTransform)
protected
AbstractMosaicSubsetMultiLevelSource(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.ImageLayout
buildMosaicImageLayout(int level)
protected javax.media.jai.RenderedOp
buildMosaicOp(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 int
computeLevelTotalImageHeight(int level)
protected int
computeLevelTotalImageWidth(int level)
protected static int
computeTopLeftDecompressedTileHeight(Rectangle imageCellReadBounds, int decompressedTileHeight)
protected static int
computeTopLeftDecompressedTileWidth(Rectangle imageCellReadBounds, int decompressedTileWidth)
protected static int
computeTopLeftUncompressedTileHeight(Rectangle imageCellReadBounds, int uncompressedTileHeight)
protected static int
computeTopLeftUncompressedTileWidth(Rectangle imageCellReadBounds, int uncompressedTileWidth)
protected static float
computeTranslateDifference(float levelTranslateOffset, int levelCellImageSize, int levelTotalImageSize, int cellIndex, int lastCellIndex, int level)
protected double[]
getMosaicOpBackgroundValues()
protected double[][]
getMosaicOpSourceThreshold()
void
reset()
Removes all cached level images and also disposes anyPlanarImage
s 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:AbstractMultiLevelSource
Removes all cached level images and also disposes anyPlanarImage
s among them.Overrides should always call
super.reset()
.- Specified by:
reset
in interfaceMultiLevelSource
- Overrides:
reset
in 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)
-
-