Class StatsFactory

Object
StatsFactory

public class StatsFactory extends Object
This factory class is used for creating all the possible Statistics subclasses. All the createXXXObject() methods give the possibility to create the chosen statistic object without selecting any index, but only setting the requested parameters if necessary. The last 2 methods could be used for creating the statistics objects by selecting their Id, defined inside the Statistics.StatsType, and passing their input parameters if needed.
  • Method Details

    • createMeanObject

      public static Statistics createMeanObject()
      This method returns a statistic object for calculating the Mean of an Image
    • createSumObject

      public static Statistics createSumObject()
      This method returns a statistic object for calculating the Sum of all the pixels of an Image
    • createMaxObject

      public static Statistics createMaxObject()
      This method returns a statistic object for calculating the Maximum of all the pixels of an Image
    • createMinObject

      public static Statistics createMinObject()
      This method returns a statistic object for calculating the Minimum of all the pixels of an Image
    • createExtremaObject

      public static Statistics createExtremaObject()
      This method returns a statistic object for calculating the Extrema of all the pixels of an Image
    • createVarianceObject

      public static Statistics createVarianceObject()
      This method returns a statistic object for calculating the Variance of an Image
    • createDevStdObject

      public static Statistics createDevStdObject()
      This method returns a statistic object for calculating the Standard Deviation of an Image
    • createHistogramObject

      public static Statistics createHistogramObject(int numBins, double minBound, double maxBound)
      This method returns a statistic object for calculating the Histogram of an Image
    • createModeObject

      public static Statistics createModeObject(int numBins, double minBound, double maxBound)
      This method returns a statistic object for calculating the Mode of an Image
    • createMedianObject

      public static Statistics createMedianObject(double minBound, double maxBound)
      This method returns a statistic object for calculating the Median of an Image
    • createSimpleStatisticsObjectFromInt

      public static Statistics createSimpleStatisticsObjectFromInt(int value)
      This method returns the simple statistic object associated to the Id returned
    • createComplexStatisticsObjectFromInt

      public static Statistics createComplexStatisticsObjectFromInt(int value, double minBound, double maxBound, int numBins)
      This method returns the complex statistic object associated to the Id returned