Class StatisticsImageFilter


public class StatisticsImageFilter extends ImageFilter
Compute min, max, variance and mean of an Image . StatisticsImageFilter computes the minimum, maximum, sum, sum of squares, mean, variance sigma of an image. The filter needs all of its input image. It behaves as a filter with an input and output. Thus it can be inserted in a pipeline with other filters and the statistics will only be recomputed if a downstream filter changes. This filter is automatically multi-threaded and can stream its input when NumberOfStreamDivisions is set to more than one. Statistics are independently computed for each streamed and threaded region then merged. Internally a compensated summation algorithm is used for the accumulation of intensities to improve accuracy for large images. See: itk::StatisticsImageFilter for the Doxygen on the original ITK class. C++ includes: sitkStatisticsImageFilter.h
  • Constructor Details

    • StatisticsImageFilter

      protected StatisticsImageFilter(long cPtr, boolean cMemoryOwn)
    • StatisticsImageFilter

      public StatisticsImageFilter()
      itk::simple::StatisticsImageFilter::StatisticsImageFilter() Default Constructor that takes no arguments and initializes default parameters
  • Method Details

    • getCPtr

      protected static long getCPtr(StatisticsImageFilter obj)
    • swigRelease

      protected static long swigRelease(StatisticsImageFilter obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class ImageFilter
    • delete

      public void delete()
      virtual itk::simple::StatisticsImageFilter::~StatisticsImageFilter() Destructor
      Overrides:
      delete in class ImageFilter
    • getMinimum

      public double getMinimum()
      double itk::simple::StatisticsImageFilter::GetMinimum() const Return the computed Minimum. This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution.
    • getMaximum

      public double getMaximum()
      double itk::simple::StatisticsImageFilter::GetMaximum() const Return the computed Maximum. This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution.
    • getMean

      public double getMean()
      double itk::simple::StatisticsImageFilter::GetMean() const Return the computed Mean. This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution.
    • getSigma

      public double getSigma()
      double itk::simple::StatisticsImageFilter::GetSigma() const Return the computed Standard Deviation. This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution.
    • getVariance

      public double getVariance()
      double itk::simple::StatisticsImageFilter::GetVariance() const Return the computed Variance. This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution.
    • getSum

      public double getSum()
      double itk::simple::StatisticsImageFilter::GetSum() const Return the compute Sum. This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution.
    • getName

      public String getName()
      std::string itk::simple::StatisticsImageFilter::GetName() const Name of this class
      Overrides:
      getName in class ProcessObject
    • toString

      public String toString()
      std::string itk::simple::StatisticsImageFilter::ToString() const Print ourselves out
      Overrides:
      toString in class ProcessObject
    • execute

      public void execute(Image image)
      void itk::simple::StatisticsImageFilter::Execute(const Image &image) Execute the filter on the input image