Package org.esa.snap.core.image
Class ColoredBandImageMultiLevelSource
java.lang.Object
com.bc.ceres.multilevel.support.AbstractMultiLevelSource
org.esa.snap.core.image.ColoredBandImageMultiLevelSource
- All Implemented Interfaces:
MultiLevelSource
A multi-level source (= level-image source for image pyramids) for visual RGB images derived from
RasterDataNodes.- Since:
- Since BEAM 4.0
-
Field Summary
Fields inherited from interface com.bc.ceres.multilevel.MultiLevelSource
NULL -
Method Summary
Modifier and TypeMethodDescriptioncreate(RasterDataNode[] rasterDataNodes, ProgressMonitor pm) create(RasterDataNode[] rasterDataNodes, MultiLevelModel model, ProgressMonitor pm) create(RasterDataNode rasterDataNode, ProgressMonitor pm) createImage(int level) Called byAbstractMultiLevelSource.getImage(int)if a level image is requested for the first time.getImageShape(int level) Gets the shape of the area where this image's raster data contains valid pixels at the given resolution level.voidsetImageInfo(ImageInfo imageInfo) Methods inherited from class com.bc.ceres.multilevel.support.AbstractMultiLevelSource
checkLevel, getImage, getModel, reset
-
Method Details
-
create
public static ColoredBandImageMultiLevelSource create(RasterDataNode rasterDataNode, ProgressMonitor pm) -
create
public static ColoredBandImageMultiLevelSource create(RasterDataNode[] rasterDataNodes, ProgressMonitor pm) -
create
public static ColoredBandImageMultiLevelSource create(RasterDataNode[] rasterDataNodes, MultiLevelModel model, ProgressMonitor pm) -
setImageInfo
-
getImageInfo
-
getImageShape
Description copied from interface:MultiLevelSourceGets the shape of the area where this image's raster data contains valid pixels at the given resolution level. The method returnsnull, if the entire image raster contains valid pixels.- Specified by:
getImageShapein interfaceMultiLevelSource- Overrides:
getImageShapein classAbstractMultiLevelSource- Parameters:
level- The resolution level.- Returns:
- The shape of the area where the image has data, can be
null.
-
createImage
Description copied from class:AbstractMultiLevelSourceCalled byAbstractMultiLevelSource.getImage(int)if a level image is requested for the first time. Note that images created via this method will bedisposedwhenAbstractMultiLevelSource.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:
createImagein classAbstractMultiLevelSource- Parameters:
level- The resolution level.- Returns:
- An instance of a
RenderedImagefor the given resolution level.
-