Package org.esa.snap.core.image
Class AbstractMatrixMosaicSubsetMultiLevelSource
java.lang.Object
com.bc.ceres.multilevel.support.AbstractMultiLevelSource
org.esa.snap.core.image.AbstractMosaicSubsetMultiLevelSource
org.esa.snap.core.image.AbstractMatrixMosaicSubsetMultiLevelSource
- All Implemented Interfaces:
MultiLevelSource
public abstract class AbstractMatrixMosaicSubsetMultiLevelSource
extends AbstractMosaicSubsetMultiLevelSource
Created by jcoravu on 12/12/2019.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
-
Field Summary
FieldsFields inherited from class org.esa.snap.core.image.AbstractMosaicSubsetMultiLevelSource
imageReadBounds, tileImageDisposer, tileSize
Fields inherited from interface com.bc.ceres.multilevel.MultiLevelSource
NULL
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractMatrixMosaicSubsetMultiLevelSource
(int levelCount, MosaicMatrix mosaicMatrix, Rectangle imageMatrixReadBounds, Dimension tileSize, AffineTransform imageToModelTransform) protected
AbstractMatrixMosaicSubsetMultiLevelSource
(MosaicMatrix mosaicMatrix, Rectangle imageMatrixReadBounds, Dimension tileSize, AffineTransform imageToModelTransform) protected
AbstractMatrixMosaicSubsetMultiLevelSource
(MosaicMatrix mosaicMatrix, Rectangle imageMatrixReadBounds, Dimension tileSize, GeoCoding geoCoding) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract List
<RenderedImage> buildMatrixCellTileImages
(int level, Rectangle imageCellReadBounds, float translateLevelOffsetX, float translateLevelOffsetY, MosaicMatrix.MatrixCell matrixCell) protected final AbstractMatrixMosaicSubsetMultiLevelSource.MatrixReadBounds
protected final RenderedImage
createImage
(int level) Called byAbstractMultiLevelSource.getImage(int)
if a level image is requested for the first time.Methods inherited from class org.esa.snap.core.image.AbstractMosaicSubsetMultiLevelSource
buildDecompressedTileImages, buildMosaicImageLayout, buildMosaicOp, buildUncompressedTileImages, computeLevelTotalImageHeight, computeLevelTotalImageWidth, computeTopLeftDecompressedTileHeight, computeTopLeftDecompressedTileWidth, computeTopLeftUncompressedTileHeight, computeTopLeftUncompressedTileWidth, computeTranslateDifference, getMosaicOpBackgroundValues, getMosaicOpSourceThreshold, reset
Methods inherited from class com.bc.ceres.multilevel.support.AbstractMultiLevelSource
checkLevel, getImage, getImageShape, getModel
-
Field Details
-
mosaicMatrix
-
-
Constructor Details
-
AbstractMatrixMosaicSubsetMultiLevelSource
protected AbstractMatrixMosaicSubsetMultiLevelSource(MosaicMatrix mosaicMatrix, Rectangle imageMatrixReadBounds, Dimension tileSize, GeoCoding geoCoding) -
AbstractMatrixMosaicSubsetMultiLevelSource
protected AbstractMatrixMosaicSubsetMultiLevelSource(MosaicMatrix mosaicMatrix, Rectangle imageMatrixReadBounds, Dimension tileSize, AffineTransform imageToModelTransform) -
AbstractMatrixMosaicSubsetMultiLevelSource
protected AbstractMatrixMosaicSubsetMultiLevelSource(int levelCount, MosaicMatrix mosaicMatrix, Rectangle imageMatrixReadBounds, Dimension tileSize, AffineTransform imageToModelTransform)
-
-
Method Details
-
buildMatrixCellTileImages
protected abstract List<RenderedImage> buildMatrixCellTileImages(int level, Rectangle imageCellReadBounds, float translateLevelOffsetX, float translateLevelOffsetY, MosaicMatrix.MatrixCell matrixCell) -
createImage
Description copied from class:AbstractMultiLevelSource
Called byAbstractMultiLevelSource.getImage(int)
if a level image is requested for the first time. Note that images created via this method will bedisposed
whenAbstractMultiLevelSource.reset()
is called on this multi-level image source. SeeAbstractMultiLevelSource.getImage(int)
.The dimension of the level image created must be the same as that obtained from {DefaultMultiLevelSource.getLevelImageBounds(Rectangle sourceBounds, double scale)} for the scale associated with the given resolution level.
- Specified by:
createImage
in classAbstractMultiLevelSource
- Parameters:
level
- The resolution level.- Returns:
- An instance of a
RenderedImage
for the given resolution level.
-
computeTopLeftMatrixCellReadBounds
protected final AbstractMatrixMosaicSubsetMultiLevelSource.MatrixReadBounds computeTopLeftMatrixCellReadBounds()
-