Package org.itk.simple
Class StatisticsImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.StatisticsImageFilter
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
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::StatisticsImageFilter::StatisticsImageFilter() Default Constructor that takes no arguments and initializes default parametersprotected
StatisticsImageFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::StatisticsImageFilter::~StatisticsImageFilter() Destructorvoid
void itk::simple::StatisticsImageFilter::Execute(const Image &image) Execute the filter on the input imageprotected void
finalize()
protected static long
double
double itk::simple::StatisticsImageFilter::GetMaximum() const Return the computed Maximum.double
getMean()
double itk::simple::StatisticsImageFilter::GetMean() const Return the computed Mean.double
double itk::simple::StatisticsImageFilter::GetMinimum() const Return the computed Minimum.getName()
std::string itk::simple::StatisticsImageFilter::GetName() const Name of this classdouble
getSigma()
double itk::simple::StatisticsImageFilter::GetSigma() const Return the computed Standard Deviation.double
getSum()
double itk::simple::StatisticsImageFilter::GetSum() const Return the compute Sum.double
double itk::simple::StatisticsImageFilter::GetVariance() const Return the computed Variance.protected static long
toString()
std::string itk::simple::StatisticsImageFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFilter
getCPtr, swigRelease
Methods inherited from class org.itk.simple.ProcessObject
abort, addCommand, debugOff, debugOn, getCPtr, getDebug, getGlobalDefaultCoordinateTolerance, getGlobalDefaultDebug, getGlobalDefaultDirectionTolerance, getGlobalDefaultNumberOfThreads, getGlobalDefaultThreader, getGlobalWarningDisplay, getNumberOfThreads, getNumberOfWorkUnits, getProgress, globalDefaultDebugOff, globalDefaultDebugOn, globalWarningDisplayOff, globalWarningDisplayOn, hasCommand, removeAllCommands, setDebug, setGlobalDefaultCoordinateTolerance, setGlobalDefaultDebug, setGlobalDefaultDirectionTolerance, setGlobalDefaultNumberOfThreads, setGlobalDefaultThreader, setGlobalWarningDisplay, setNumberOfThreads, setNumberOfWorkUnits, swigRelease
-
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
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalize
in classImageFilter
-
delete
public void delete()virtual itk::simple::StatisticsImageFilter::~StatisticsImageFilter() Destructor- Overrides:
delete
in classImageFilter
-
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
std::string itk::simple::StatisticsImageFilter::GetName() const Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::StatisticsImageFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
void itk::simple::StatisticsImageFilter::Execute(const Image &image) Execute the filter on the input image
-