|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.datamodel.Stx
public class Stx
Provides statistic information for a raster data node at a given image resolution level.
Instances of the Stx class are created using the StxFactory.
StxFactory
leaving behind this class as a pure data container. Statistics are now furthermore derived upon
geo-physically interpreted image data (before it operated on the raw, unscaled data). Thus, it is
not required to scale the returned statistical properties, e.g. we used to write
band.scale(stx.getMean()). This is not required anymore.
| Field Summary | |
|---|---|
static int |
DEFAULT_BIN_COUNT
|
static Scaling |
LOG10_SCALING
|
| Constructor Summary | |
|---|---|
Stx(double minimum,
double maximum,
double mean,
double standardDeviation,
boolean logHistogram,
boolean intHistogram,
javax.media.jai.Histogram histogram,
int resolutionLevel)
Constructor. |
|
| Method Summary | |
|---|---|
static Stx |
create(RasterDataNode raster,
int level,
int binCount,
double min,
double max,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. since BEAM 4.10, use StxFactory instead. |
static Stx |
create(RasterDataNode raster,
int level,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. since BEAM 4.10, use StxFactory instead. |
static Stx |
create(RasterDataNode raster,
Mask roiMask,
int binCount,
double min,
double max,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. since BEAM 4.10, use StxFactory instead. |
static Stx |
create(RasterDataNode raster,
Mask roiMask,
int binCount,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. since BEAM 4.10, use StxFactory instead. |
static Stx |
create(RasterDataNode raster,
Mask roiMask,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. since BEAM 4.10, use StxFactory instead. |
javax.media.jai.Histogram |
getHistogram()
Gets the histogram computed from image samples. |
int |
getHistogramBinCount()
|
double |
getHistogramBinMax(int binIndex)
Deprecated. since BEAM 4.10, use getHistogramBinMaximum(int) |
double |
getHistogramBinMaximum(int binIndex)
Gets the (exclusive) maximum value of the histogram bin given by the bin index. |
double |
getHistogramBinMin(int binIndex)
Deprecated. since BEAM 4.10, use getHistogramBinMinimum(int) |
double |
getHistogramBinMinimum(int binIndex)
Gets the (inclusive) minimum value of the histogram bin given by the bin index. |
int[] |
getHistogramBins()
|
double |
getHistogramBinWidth()
Gets the width of any histogram bin. |
double |
getHistogramBinWidth(int binIndex)
Gets the width of the histogram bin given by the bin index. |
Scaling |
getHistogramScaling()
|
double |
getMax()
Deprecated. since BEAM 4.10, use getMaximum() ()} |
double |
getMaximum()
|
double |
getMean()
|
double |
getMedian()
|
double |
getMin()
Deprecated. since BEAM 4.10, use getMinimum() |
double |
getMinimum()
|
int |
getResolutionLevel()
|
long |
getSampleCount()
|
double |
getStandardDeviation()
|
boolean |
isIntHistogram()
|
boolean |
isLogHistogram()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_BIN_COUNT
public static final Scaling LOG10_SCALING
| Constructor Detail |
|---|
public Stx(double minimum,
double maximum,
double mean,
double standardDeviation,
boolean logHistogram,
boolean intHistogram,
javax.media.jai.Histogram histogram,
int resolutionLevel)
StxFactory since the constructor may change in the future.
minimum - the minimum value, if it is Double.NaN the minimum is taken from the histogrammaximum - the maximum value, if it is Double.NaN the maximum is taken from the histogrammean - the mean value, if it is Double.NaN the mean is taken from the histogramstandardDeviation - the value of the standard deviation, if it is Double.NaN it is taken from the histogramlogHistogram - true if the histogram has been computed on logarithms, see getHistogram()intHistogram - true if the histogram has been computed from integer samples, see getHistogram()histogram - the histogramresolutionLevel - the resolution level this Stx is for| Method Detail |
|---|
public double getMinimum()
public double getMaximum()
public double getMean()
public double getMedian()
public double getStandardDeviation()
public javax.media.jai.Histogram getHistogram()
isLogHistogram() returns true and it is expected that the histogram has been
computed from logarithms (base 10) of image samples.
Therefore, any statistical property retrieved from the returned histogram object such as low value, high value, bin low value,
mean, moment, entropy, etc. must be raised to the power of 10. Scaling is best done using the getHistogramScaling() object.
The returned histogram may furthermore be computed from integer image data.
In this case isIntHistogram() returns true and the high value of the histogram is by one higher than
the value returned by getMinimum().
The numBands property of the histogram will always be 1.
isIntHistogram(),
isLogHistogram(),
getHistogramScaling()public boolean isIntHistogram()
true if the histogram is computed from integer samples.getHistogram()public boolean isLogHistogram()
true if the histogram is computed from log-samples.getHistogram(),
getHistogramScaling()public double getHistogramBinMinimum(int binIndex)
histogram scaling is already applied
binIndex - The bin index.
public double getHistogramBinMaximum(int binIndex)
histogram scaling is already applied
binIndex - The bin index.
public double getHistogramBinWidth()
isLogHistogram() returns true. In this case you will have to use
getHistogramBinWidth(int).
public double getHistogramBinWidth(int binIndex)
histogram scaling is already applied
binIndex - The bin index.
public int[] getHistogramBins()
public int getHistogramBinCount()
public Scaling getHistogramScaling()
public long getSampleCount()
public int getResolutionLevel()
@Deprecated public double getHistogramBinMin(int binIndex)
getHistogramBinMinimum(int)
@Deprecated public double getHistogramBinMax(int binIndex)
getHistogramBinMaximum(int)
@Deprecated public double getMin()
getMinimum()
@Deprecated public double getMax()
getMaximum() ()}
@Deprecated
public static Stx create(RasterDataNode raster,
int level,
com.bc.ceres.core.ProgressMonitor pm)
StxFactory instead.
raster - The raster data node.level - The image resolution level.pm - A progress monitor.
@Deprecated
public static Stx create(RasterDataNode raster,
Mask roiMask,
com.bc.ceres.core.ProgressMonitor pm)
StxFactory instead.
raster - The raster data node.roiMask - The mask that determines the region of interest.pm - A progress monitor.
@Deprecated
public static Stx create(RasterDataNode raster,
Mask roiMask,
int binCount,
com.bc.ceres.core.ProgressMonitor pm)
StxFactory instead.
raster - The raster data node.roiMask - The mask that determines the region of interest.binCount - The number of bin cells used for the histogram.pm - A progress monitor.
@Deprecated
public static Stx create(RasterDataNode raster,
int level,
int binCount,
double min,
double max,
com.bc.ceres.core.ProgressMonitor pm)
StxFactory instead.
raster - The raster data node.level - The image resolution level.binCount - The number of bin cells used for the histogram.min - The minimum value.max - The maximum value.pm - A progress monitor.
@Deprecated
public static Stx create(RasterDataNode raster,
Mask roiMask,
int binCount,
double min,
double max,
com.bc.ceres.core.ProgressMonitor pm)
StxFactory instead.
raster - The raster data node.roiMask - The mask that determines the region of interest.binCount - The number of bin cells used for the histogram.min - The minimum value.max - The maximum value.pm - A progress monitor.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||