Package org.esa.snap.core.image
Class AbstractMosaicSubsetMultiLevelSource
java.lang.Object
com.bc.ceres.multilevel.support.AbstractMultiLevelSource
org.esa.snap.core.image.AbstractMosaicSubsetMultiLevelSource
- All Implemented Interfaces:
MultiLevelSource
- Direct Known Subclasses:
AbstractMatrixMosaicSubsetMultiLevelSource
Created by jcoravu on 11/12/2019.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Rectangleprotected final TileImageDisposerprotected final DimensionFields inherited from interface com.bc.ceres.multilevel.MultiLevelSource
NULL -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractMosaicSubsetMultiLevelSource(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
Modifier and TypeMethodDescriptionprotected final <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 final javax.media.jai.RenderedOpbuildMosaicOp(int level, List<RenderedImage> tileImages, boolean canCreateSourceROI) protected final <TileDataType>
List<RenderedImage> buildUncompressedTileImages(int level, Rectangle imageCellReadBounds, int uncompressedTileWidth, int uncompressedTileHeight, float translateLevelOffsetX, float translateLevelOffsetY, UncompressedTileOpImageCallback<TileDataType> tileOpImageCallback, TileDataType tileData) protected final intcomputeLevelTotalImageHeight(int level) protected final 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[]protected double[][]voidreset()Removes all cached level images and also disposes anyPlanarImages among them.Methods inherited from class com.bc.ceres.multilevel.support.AbstractMultiLevelSource
checkLevel, createImage, getImage, getImageShape, getModel
-
Field Details
-
imageReadBounds
-
tileSize
-
tileImageDisposer
-
-
Constructor Details
-
AbstractMosaicSubsetMultiLevelSource
-
AbstractMosaicSubsetMultiLevelSource
protected AbstractMosaicSubsetMultiLevelSource(Rectangle imageReadBounds, Dimension tileSize, AffineTransform imageToModelTransform) -
AbstractMosaicSubsetMultiLevelSource
-
AbstractMosaicSubsetMultiLevelSource
protected AbstractMosaicSubsetMultiLevelSource(int levelCount, Rectangle imageReadBounds, Dimension tileSize, AffineTransform imageToModelTransform)
-
-
Method Details
-
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)
-