Modifier and Type | Class and Description |
---|---|
static class |
ImageInfo.HistogramMatching
Enumerates the possible histogram matching modes.
|
static class |
ImageInfo.UncertaintyVisualisationMode
Enumerates the possible histogram matching modes.
|
Modifier and Type | Field and Description |
---|---|
static String |
HISTOGRAM_MATCHING_EQUALIZE
Deprecated.
|
static String |
HISTOGRAM_MATCHING_NORMALIZE
Deprecated.
|
static String |
HISTOGRAM_MATCHING_OFF
Deprecated.
since BEAM 4.2, use enum
ImageInfo.HistogramMatching |
static Color |
NO_COLOR |
Constructor and Description |
---|
ImageInfo(ColorPaletteDef colorPaletteDef)
Constructs a new image information instance.
|
ImageInfo(RGBChannelDef rgbChannelDef)
Constructs a new RGB image information instance.
|
Modifier and Type | Method and Description |
---|---|
ImageInfo |
clone()
Creates and returns a copy of this object.
|
ComponentColorModel |
createComponentColorModel() |
ImageInfo |
createDeepCopy()
Creates and returns a "deep" copy of this object.
|
IndexColorModel |
createIndexColorModel(Scaling scaling) |
void |
dispose()
Releases all of the resources used by this object instance and all of its owned children.
|
int |
getColorComponentCount()
Gets the number of color components the image shall have using an instance of this
ImageInfo . |
ColorPaletteDef |
getColorPaletteDef()
Gets the color palette definition as used for images created from single bands.
|
Color[] |
getColors() |
ImageInfo.HistogramMatching |
getHistogramMatching() |
static ImageInfo.HistogramMatching |
getHistogramMatching(String mode)
Converts a string to a histogram matching.
|
Color |
getNoDataColor() |
RGBChannelDef |
getRgbChannelDef()
Gets the RGB(A) channel definition as used for images created from 3 tp 4 bands.
|
String |
getUncertaintyBandName() |
ImageInfo.UncertaintyVisualisationMode |
getUncertaintyVisualisationMode() |
boolean |
isLogScaled() |
void |
setColorPaletteDef(ColorPaletteDef colorPaletteDef,
double minSample,
double maxSample,
boolean autoDistribute)
Transfers the colour palette into this image info.
|
void |
setColors(Color[] colors)
Sets the colours of the colour palette of this image info.
|
void |
setHistogramMatching(ImageInfo.HistogramMatching histogramMatching) |
void |
setLogScaled(boolean logScaled) |
void |
setNoDataColor(Color noDataColor) |
void |
setUncertaintyBandName(String uncertaintyBandName) |
void |
setUncertaintyVisualisationMode(ImageInfo.UncertaintyVisualisationMode uncertaintyVisualisationMode) |
public static final Color NO_COLOR
@Deprecated public static final String HISTOGRAM_MATCHING_OFF
ImageInfo.HistogramMatching
@Deprecated public static final String HISTOGRAM_MATCHING_EQUALIZE
@Deprecated public static final String HISTOGRAM_MATCHING_NORMALIZE
public ImageInfo(ColorPaletteDef colorPaletteDef)
colorPaletteDef
- the color palette definitionpublic ImageInfo(RGBChannelDef rgbChannelDef)
rgbChannelDef
- the RGB channel definitionpublic ColorPaletteDef getColorPaletteDef()
null
.
In this case getRgbChannelDef()
is non-null.public RGBChannelDef getRgbChannelDef()
null
. In this case getColorPaletteDef()
is non-null.public Color getNoDataColor()
public void setNoDataColor(Color noDataColor)
public String getUncertaintyBandName()
public void setUncertaintyBandName(String uncertaintyBandName)
public ImageInfo.HistogramMatching getHistogramMatching()
public void setHistogramMatching(ImageInfo.HistogramMatching histogramMatching)
public ImageInfo.UncertaintyVisualisationMode getUncertaintyVisualisationMode()
public void setUncertaintyVisualisationMode(ImageInfo.UncertaintyVisualisationMode uncertaintyVisualisationMode)
public boolean isLogScaled()
public void setLogScaled(boolean logScaled)
public Color[] getColors()
public int getColorComponentCount()
ImageInfo
.3
for RGB images, 4
for RGB images with an alpha channel (transparency)public IndexColorModel createIndexColorModel(Scaling scaling)
public ComponentColorModel createComponentColorModel()
public final ImageInfo clone()
public ImageInfo createDeepCopy()
clone()
.public void dispose()
This method should be called only if it is for sure that this object instance will never be used again. The
results of referencing an instance of this class after a call to dispose()
are undefined.
Overrides of this method should always call super.dispose();
after disposing this instance.
public void setColors(Color[] colors)
colors
- the new colourspublic void setColorPaletteDef(ColorPaletteDef colorPaletteDef, double minSample, double maxSample, boolean autoDistribute)
colorPaletteDef
- another colour paletteminSample
- the minium allowed sample value in the new colour palettemaxSample
- the maximum allowed sample value in the new colour paletteautoDistribute
- if true, points are distributed between minSample/maxSample.public static ImageInfo.HistogramMatching getHistogramMatching(String mode)
mode
- the histogram matching stringImageInfo.HistogramMatching.None
if maode
is not "Equalize" or "Normalize".Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.