Package org.esa.snap.core.datamodel
Class StxFactory
- java.lang.Object
-
- org.esa.snap.core.datamodel.StxFactory
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_BIN_COUNT
-
Constructor Summary
Constructors Constructor Description StxFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
accumulate(RasterDataNode rasterDataNode, int level, RenderedImage roiImage, Shape roiShape, org.esa.snap.core.datamodel.StxOp op, ProgressMonitor pm)
Stx
create()
Creates anStx
instance.Stx
create(Mask[] roiMasks, RasterDataNode[] rasters, ProgressMonitor pm)
Computes statistics for the given set of raster data nodes.Stx
create(RasterDataNode raster, ProgressMonitor pm)
Computes statistics for the given raster data node.StxFactory
withHistogram(javax.media.jai.Histogram histogram)
StxFactory
withHistogramBinCount(Integer histogramBinCount)
StxFactory
withHistogramBins(int[] histogramBins)
StxFactory
withIntHistogram(boolean intHistogram)
StxFactory
withLogHistogram(boolean logHistogram)
StxFactory
withMaximum(Number maximum)
StxFactory
withMean(Number mean)
StxFactory
withMinimum(Number minimum)
StxFactory
withResolutionLevel(Integer resolutionLevel)
StxFactory
withRoiImage(RenderedImage roiImage)
StxFactory
withRoiMask(Mask roiMask)
StxFactory
withRoiShape(Shape roiShape)
StxFactory
withStandardDeviation(Number standardDeviation)
-
-
-
Field Detail
-
DEFAULT_BIN_COUNT
public static final int DEFAULT_BIN_COUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
withMinimum
public StxFactory withMinimum(Number minimum)
-
withMaximum
public StxFactory withMaximum(Number maximum)
-
withMean
public StxFactory withMean(Number mean)
-
withStandardDeviation
public StxFactory withStandardDeviation(Number standardDeviation)
-
withIntHistogram
public StxFactory withIntHistogram(boolean intHistogram)
-
withLogHistogram
public StxFactory withLogHistogram(boolean logHistogram)
-
withHistogram
public StxFactory withHistogram(javax.media.jai.Histogram histogram)
-
withResolutionLevel
public StxFactory withResolutionLevel(Integer resolutionLevel)
-
withRoiMask
public StxFactory withRoiMask(Mask roiMask)
-
withRoiImage
public StxFactory withRoiImage(RenderedImage roiImage)
- Parameters:
roiImage
- The ROI image. Ignored if ROI mask is used.- Returns:
- This instance.
-
withRoiShape
public StxFactory withRoiShape(Shape roiShape)
-
withHistogramBinCount
public StxFactory withHistogramBinCount(Integer histogramBinCount)
-
withHistogramBins
public StxFactory withHistogramBins(int[] histogramBins)
-
create
public Stx create()
Creates anStx
instance.- Returns:
- The statistics.
-
create
public Stx create(Mask[] roiMasks, RasterDataNode[] rasters, ProgressMonitor pm)
Computes statistics for the given set of raster data nodes.- Parameters:
roiMasks
- An array of roi masks, must benull
or have the same length asrasters
.rasters
- The raster data nodes.pm
- A progress monitor.- Returns:
- The statistics.
-
create
public Stx create(RasterDataNode raster, ProgressMonitor pm)
Computes statistics for the given raster data node.- Parameters:
raster
- The raster data node.pm
- A progress monitor.- Returns:
- The statistics.
-
accumulate
public static void accumulate(RasterDataNode rasterDataNode, int level, RenderedImage roiImage, Shape roiShape, org.esa.snap.core.datamodel.StxOp op, ProgressMonitor pm)
-
-