Package org.esa.snap.core.datamodel
Class StxFactory
java.lang.Object
org.esa.snap.core.datamodel.StxFactory
The factory for
Stx instances.
The design of this class is following the Builder pattern.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaccumulate(RasterDataNode rasterDataNode, int level, RenderedImage roiImage, Shape roiShape, org.esa.snap.core.datamodel.StxOp op, ProgressMonitor pm) create()Creates anStxinstance.create(Mask[] roiMasks, RasterDataNode[] rasters, ProgressMonitor pm) Computes statistics for the given set of raster data nodes.create(RasterDataNode raster, ProgressMonitor pm) Computes statistics for the given raster data node.withHistogram(WrappedHistogram histogram) withHistogramBinCount(Integer histogramBinCount) withHistogramBins(int[] histogramBins) withIntHistogram(boolean intHistogram) withLogHistogram(boolean logHistogram) withMaximum(Number maximum) withMinimum(Number minimum) withResolutionLevel(Integer resolutionLevel) withRoiImage(RenderedImage roiImage) withRoiMask(Mask roiMask) withRoiShape(Shape roiShape) withStandardDeviation(Number standardDeviation)
-
Field Details
-
DEFAULT_BIN_COUNT
public static final int DEFAULT_BIN_COUNT- See Also:
-
-
Constructor Details
-
StxFactory
public StxFactory()
-
-
Method Details
-
withMinimum
-
withMaximum
-
withMean
-
withStandardDeviation
-
withIntHistogram
-
withLogHistogram
-
withHistogram
-
withResolutionLevel
-
withRoiMask
-
withRoiImage
- Parameters:
roiImage- The ROI image. Ignored if ROI mask is used.- Returns:
- This instance.
-
withRoiShape
-
withHistogramBinCount
-
withHistogramBins
-
create
Creates anStxinstance.- Returns:
- The statistics.
-
create
Computes statistics for the given set of raster data nodes.- Parameters:
roiMasks- An array of roi masks, must benullor have the same length asrasters.rasters- The raster data nodes.pm- A progress monitor.- Returns:
- The statistics.
-
create
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)
-