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 Rectangle
protected final TileImageDisposer
protected final Dimension
Fields inherited from interface com.bc.ceres.multilevel.MultiLevelSource
NULL
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
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
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.ImageLayout
buildMosaicImageLayout
(int level) protected final javax.media.jai.RenderedOp
buildMosaicOp
(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 int
computeLevelTotalImageHeight
(int level) protected final 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[]
protected double[][]
void
reset()
Removes all cached level images and also disposes anyPlanarImage
s 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: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)
-