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

public abstract class AbstractMosaicSubsetMultiLevelSource extends AbstractMultiLevelSource
Created by jcoravu on 11/12/2019.
  • Field Details

    • imageReadBounds

      protected final Rectangle imageReadBounds
    • tileSize

      protected final Dimension tileSize
    • tileImageDisposer

      protected final TileImageDisposer tileImageDisposer
  • Constructor Details

    • 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 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 any PlanarImages among them.

      Overrides should always call super.reset().

      Specified by:
      reset in interface MultiLevelSource
      Overrides:
      reset in class AbstractMultiLevelSource
    • 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)