Package org.esa.snap.core.image
Class ImageManager
- java.lang.Object
-
- org.esa.snap.core.image.ImageManager
-
public class ImageManager extends Object
This class provides most of the new imaging features introduced in BEAM 4.5.WARNING: Although
ImageManager
is intended to belong to the public BEAM API you should use it with care, since it is still under development and may change slightly in forthcoming versions.
-
-
Constructor Summary
Constructors Constructor Description ImageManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RenderedImage
createColoredBandImage(RasterDataNode[] rasterDataNodes, ImageInfo imageInfo, int level)
static javax.media.jai.PlanarImage
createColoredMaskImage(Color color, RenderedImage alphaImage, boolean invertAlpha)
static javax.media.jai.PlanarImage
createColoredMaskImage(Color color, RenderedImage alphaImage, RenderingHints hints)
static javax.media.jai.PlanarImage
createColoredMaskImage(RenderedImage maskImage, Color color, double opacity)
javax.media.jai.PlanarImage
createColoredMaskImage(Product product, String expression, Color color, boolean invertMask, int level)
static Color[]
createColorPalette(ImageInfo imageInfo)
static RenderedImage
createFormatOp(RenderedImage image, int dataType)
static RenderedImage
createFormatOp(RenderedImage image, int dataType, javax.media.jai.ImageLayout targetLayout)
static MultiLevelImage
createMaskedGeophysicalImage(RasterDataNode node, Number maskValue)
static javax.media.jai.ImageLayout
createSingleBandedImageLayout(int dataBufferType, int width, int height, int tileWidth, int tileHeight)
static javax.media.jai.ImageLayout
createSingleBandedImageLayout(int dataBufferType, int sourceWidth, int sourceHeight, Dimension tileSize, ResolutionLevel level)
static javax.media.jai.ImageLayout
createSingleBandedImageLayout(int dataBufferType, Point sourcePos, int sourceWidth, int sourceHeight, Dimension tileSize, ResolutionLevel level)
static javax.media.jai.ImageLayout
createSingleBandedImageLayout(RasterDataNode rasterDataNode)
static javax.media.jai.ImageLayout
createSingleBandedImageLayout(RasterDataNode rasterDataNode, int dataBufferType)
static int
getDataBufferType(int productDataType)
javax.media.jai.PlanarImage
getGeophysicalImage(RasterDataNode rasterDataNode, int level)
ImageInfo
getImageInfo(RasterDataNode[] rasters)
static ImageManager
getInstance()
static Dimension
getPreferredTileSize(Product product)
static int
getProductDataType(int dataBufferType)
javax.media.jai.PlanarImage
getSourceImage(RasterDataNode rasterDataNode, int level)
int
getStatisticsLevel(RasterDataNode raster, int levelCount)
static RasterDataNode
getUncertaintyBand(RasterDataNode valueBand)
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability.javax.media.jai.PlanarImage
getValidMaskImage(RasterDataNode rasterDataNode, int level)
void
prepareImageInfos(RasterDataNode[] rasterDataNodes, ProgressMonitor pm)
-
-
-
Method Detail
-
getInstance
public static ImageManager getInstance()
-
createSingleBandedImageLayout
public static javax.media.jai.ImageLayout createSingleBandedImageLayout(RasterDataNode rasterDataNode)
-
createSingleBandedImageLayout
public static javax.media.jai.ImageLayout createSingleBandedImageLayout(RasterDataNode rasterDataNode, int dataBufferType)
-
createSingleBandedImageLayout
public static javax.media.jai.ImageLayout createSingleBandedImageLayout(int dataBufferType, int width, int height, int tileWidth, int tileHeight)
-
createSingleBandedImageLayout
public static javax.media.jai.ImageLayout createSingleBandedImageLayout(int dataBufferType, int sourceWidth, int sourceHeight, Dimension tileSize, ResolutionLevel level)
-
createSingleBandedImageLayout
public static javax.media.jai.ImageLayout createSingleBandedImageLayout(int dataBufferType, Point sourcePos, int sourceWidth, int sourceHeight, Dimension tileSize, ResolutionLevel level)
-
getDataBufferType
public static int getDataBufferType(int productDataType)
-
getProductDataType
public static int getProductDataType(int dataBufferType)
-
getUncertaintyBand
public static RasterDataNode getUncertaintyBand(RasterDataNode valueBand)
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
-
createColoredMaskImage
public static javax.media.jai.PlanarImage createColoredMaskImage(Color color, RenderedImage alphaImage, boolean invertAlpha)
-
createColoredMaskImage
public static javax.media.jai.PlanarImage createColoredMaskImage(RenderedImage maskImage, Color color, double opacity)
-
createColoredMaskImage
public static javax.media.jai.PlanarImage createColoredMaskImage(Color color, RenderedImage alphaImage, RenderingHints hints)
-
createMaskedGeophysicalImage
public static MultiLevelImage createMaskedGeophysicalImage(RasterDataNode node, Number maskValue)
-
createFormatOp
public static RenderedImage createFormatOp(RenderedImage image, int dataType)
-
createFormatOp
public static RenderedImage createFormatOp(RenderedImage image, int dataType, javax.media.jai.ImageLayout targetLayout)
-
getSourceImage
public javax.media.jai.PlanarImage getSourceImage(RasterDataNode rasterDataNode, int level)
-
getValidMaskImage
public javax.media.jai.PlanarImage getValidMaskImage(RasterDataNode rasterDataNode, int level)
-
getGeophysicalImage
public javax.media.jai.PlanarImage getGeophysicalImage(RasterDataNode rasterDataNode, int level)
-
createColoredBandImage
public RenderedImage createColoredBandImage(RasterDataNode[] rasterDataNodes, ImageInfo imageInfo, int level)
-
getImageInfo
public ImageInfo getImageInfo(RasterDataNode[] rasters)
-
prepareImageInfos
public void prepareImageInfos(RasterDataNode[] rasterDataNodes, ProgressMonitor pm)
-
getStatisticsLevel
public int getStatisticsLevel(RasterDataNode raster, int levelCount)
-
-