ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkOtsuMultipleThresholdsCalculator.h>
Computes Otsu's thresholds for a histogram.
You plug in the target histogram using SetInputHistogram method and specify the number of thresholds you want to be computed. Then call the GenerateData method to run the alogithm.
The thresholds are computed so that the between-class variance is maximized.
Definition at line 41 of file itkOtsuMultipleThresholdsCalculator.h.
typedef SmartPointer< const Self > itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::ConstPointer |
Reimplemented from itk::HistogramAlgorithmBase< TInputHistogram >.
Definition at line 49 of file itkOtsuMultipleThresholdsCalculator.h.
typedef TInputHistogram::AbsoluteFrequencyType itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::FrequencyType |
Definition at line 52 of file itkOtsuMultipleThresholdsCalculator.h.
typedef std::vector< FrequencyType > itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::FrequencyVectorType |
Definition at line 58 of file itkOtsuMultipleThresholdsCalculator.h.
typedef TInputHistogram::InstanceIdentifier itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::InstanceIdentifierType |
Definition at line 60 of file itkOtsuMultipleThresholdsCalculator.h.
typedef std::vector< InstanceIdentifierType > itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::InstanceIdentifierVectorType |
Definition at line 61 of file itkOtsuMultipleThresholdsCalculator.h.
typedef NumericTraits< MeasurementType >::RealType itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::MeanType |
Definition at line 54 of file itkOtsuMultipleThresholdsCalculator.h.
typedef std::vector< MeanType > itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::MeanVectorType |
Definition at line 57 of file itkOtsuMultipleThresholdsCalculator.h.
typedef TInputHistogram::MeasurementType itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::MeasurementType |
Definition at line 51 of file itkOtsuMultipleThresholdsCalculator.h.
typedef std::vector< MeasurementType > itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::OutputType |
Typedef for the thresholds output
Definition at line 65 of file itkOtsuMultipleThresholdsCalculator.h.
typedef SmartPointer< Self > itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::Pointer |
Reimplemented from itk::HistogramAlgorithmBase< TInputHistogram >.
Definition at line 48 of file itkOtsuMultipleThresholdsCalculator.h.
typedef OtsuMultipleThresholdsCalculator itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::Self |
Standard class typedefs.
Reimplemented from itk::HistogramAlgorithmBase< TInputHistogram >.
Definition at line 46 of file itkOtsuMultipleThresholdsCalculator.h.
typedef HistogramAlgorithmBase< TInputHistogram > itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::Superclass |
Reimplemented from itk::HistogramAlgorithmBase< TInputHistogram >.
Definition at line 47 of file itkOtsuMultipleThresholdsCalculator.h.
typedef NumericTraits< MeasurementType >::RealType itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::VarianceType |
Definition at line 55 of file itkOtsuMultipleThresholdsCalculator.h.
itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::OtsuMultipleThresholdsCalculator | ( | ) | [protected] |
Set/Get the number of thresholds.
virtual itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::~OtsuMultipleThresholdsCalculator | ( | ) | [inline, protected, virtual] |
Set/Get the number of thresholds.
Definition at line 79 of file itkOtsuMultipleThresholdsCalculator.h.
virtual::itk::LightObject::Pointer itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::CreateAnother | ( | void | ) | const [virtual] |
Standard Macros
Reimplemented from itk::Object.
void itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::GenerateData | ( | ) | [protected, virtual] |
Calculates the thresholds and save them
Implements itk::HistogramAlgorithmBase< TInputHistogram >.
virtual const char* itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::GetNameOfClass | ( | ) | const [virtual] |
Standard Macros
Reimplemented from itk::HistogramAlgorithmBase< TInputHistogram >.
virtual SizeValueType itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::GetNumberOfThresholds | ( | ) | const [virtual] |
Set/Get the number of thresholds.
const OutputType& itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::GetOutput | ( | ) |
Returns the thresholds vector
bool itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::IncrementThresholds | ( | InstanceIdentifierVectorType & | thresholdIds, |
MeanType | totalMean, | ||
MeanVectorType & | classMean, | ||
FrequencyVectorType & | classFrequency | ||
) | [protected] |
Increment the thresholds of one position
static Pointer itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::New | ( | ) | [static] |
Standard Macros
Reimplemented from itk::Object.
void itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
Set/Get the number of thresholds.
Reimplemented from itk::HistogramAlgorithmBase< TInputHistogram >.
virtual void itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::SetNumberOfThresholds | ( | SizeValueType | _arg | ) | [virtual] |
Set/Get the number of thresholds.
SizeValueType itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::m_NumberOfThresholds [private] |
Internal thresholds storage
Definition at line 94 of file itkOtsuMultipleThresholdsCalculator.h.
OutputType itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::m_Output [private] |
Definition at line 95 of file itkOtsuMultipleThresholdsCalculator.h.