Class StxFactory


  • public class StxFactory
    extends Object
    The factory for Stx instances. The design of this class is following the Builder pattern.
    • Constructor Detail

      • StxFactory

        public StxFactory()
    • Method Detail

      • 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)
      • withRoiImage

        public StxFactory withRoiImage​(RenderedImage roiImage)
        Parameters:
        roiImage - The ROI image. Ignored if ROI mask is used.
        Returns:
        This instance.
      • withHistogramBinCount

        public StxFactory withHistogramBinCount​(Integer histogramBinCount)
      • withHistogramBins

        public StxFactory withHistogramBins​(int[] histogramBins)
      • create

        public Stx create()
        Creates an Stx 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 be null or have the same length as rasters.
        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.