Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::OtsuMultipleThresholdsCalculator< TInputHistogram > Class Template Reference

Computes Otsu's thresholds for a histogram. More...

#include <itkOtsuMultipleThresholdsCalculator.h>

Inheritance diagram for itk::OtsuMultipleThresholdsCalculator< TInputHistogram >:

Inheritance graph
[legend]
Collaboration diagram for itk::OtsuMultipleThresholdsCalculator< TInputHistogram >:

Collaboration graph
[legend]
List of all members.

[NOHEADER]

virtual const char * GetNameOfClass () const
Pointer New ()

Public Types

typedef OtsuMultipleThresholdsCalculator Self
typedef HistogramAlgorithmBase<
TInputHistogram > 
Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef TInputHistogram::MeasurementType MeasurementType
typedef TInputHistogram::FrequencyType FrequencyType
typedef NumericTraits< MeasurementType
>::RealType 
MeanType
typedef NumericTraits< MeasurementType
>::RealType 
VarianceType
typedef std::vector< MeanTypeMeanVectorType
typedef std::vector< FrequencyTypeFrequencyVectorType
typedef TInputHistogram::InstanceIdentifier InstanceIdentifierType
typedef std::vector< InstanceIdentifierTypeInstanceIdentifierVectorType
typedef std::vector< MeasurementTypeOutputType

Public Member Functions

const OutputTypeGetOutput ()
virtual void SetNumberOfThresholds (unsigned long _arg)
virtual unsigned long GetNumberOfThresholds ()

Protected Member Functions

 OtsuMultipleThresholdsCalculator ()
virtual ~OtsuMultipleThresholdsCalculator ()
void PrintSelf (std::ostream &os, Indent indent) const
void GenerateData ()
bool IncrementThresholds (InstanceIdentifierVectorType &thresholdIds, MeanType totalMean, MeanVectorType &classMean, FrequencyVectorType &classFrequency)

Detailed Description

template<class TInputHistogram>
class itk::OtsuMultipleThresholdsCalculator< TInputHistogram >

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 40 of file itkOtsuMultipleThresholdsCalculator.h.


Member Typedef Documentation

template<class TInputHistogram>
typedef SmartPointer<const Self> itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::ConstPointer
 

Reimplemented from itk::HistogramAlgorithmBase< TInputHistogram >.

Definition at line 48 of file itkOtsuMultipleThresholdsCalculator.h.

template<class TInputHistogram>
typedef TInputHistogram::FrequencyType itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::FrequencyType
 

Definition at line 51 of file itkOtsuMultipleThresholdsCalculator.h.

template<class TInputHistogram>
typedef std::vector<FrequencyType> itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::FrequencyVectorType
 

Definition at line 57 of file itkOtsuMultipleThresholdsCalculator.h.

Referenced by itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::~OtsuMultipleThresholdsCalculator().

template<class TInputHistogram>
typedef TInputHistogram::InstanceIdentifier itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::InstanceIdentifierType
 

Definition at line 59 of file itkOtsuMultipleThresholdsCalculator.h.

template<class TInputHistogram>
typedef std::vector<InstanceIdentifierType> itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::InstanceIdentifierVectorType
 

Definition at line 60 of file itkOtsuMultipleThresholdsCalculator.h.

Referenced by itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::~OtsuMultipleThresholdsCalculator().

template<class TInputHistogram>
typedef NumericTraits<MeasurementType>::RealType itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::MeanType
 

Definition at line 53 of file itkOtsuMultipleThresholdsCalculator.h.

Referenced by itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::~OtsuMultipleThresholdsCalculator().

template<class TInputHistogram>
typedef std::vector<MeanType> itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::MeanVectorType
 

Definition at line 56 of file itkOtsuMultipleThresholdsCalculator.h.

Referenced by itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::~OtsuMultipleThresholdsCalculator().

template<class TInputHistogram>
typedef TInputHistogram::MeasurementType itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::MeasurementType
 

Definition at line 50 of file itkOtsuMultipleThresholdsCalculator.h.

template<class TInputHistogram>
typedef std::vector<MeasurementType> itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::OutputType
 

Typedef for the thresholds output

Definition at line 68 of file itkOtsuMultipleThresholdsCalculator.h.

Referenced by itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::~OtsuMultipleThresholdsCalculator().

template<class TInputHistogram>
typedef SmartPointer<Self> itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::Pointer
 

Reimplemented from itk::HistogramAlgorithmBase< TInputHistogram >.

Definition at line 47 of file itkOtsuMultipleThresholdsCalculator.h.

template<class TInputHistogram>
typedef OtsuMultipleThresholdsCalculator itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::Self
 

Standard class typedefs.

Reimplemented from itk::HistogramAlgorithmBase< TInputHistogram >.

Definition at line 45 of file itkOtsuMultipleThresholdsCalculator.h.

template<class TInputHistogram>
typedef HistogramAlgorithmBase<TInputHistogram> itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::Superclass
 

Reimplemented from itk::HistogramAlgorithmBase< TInputHistogram >.

Definition at line 46 of file itkOtsuMultipleThresholdsCalculator.h.

template<class TInputHistogram>
typedef NumericTraits<MeasurementType>::RealType itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::VarianceType
 

Definition at line 54 of file itkOtsuMultipleThresholdsCalculator.h.


Constructor & Destructor Documentation

template<class TInputHistogram>
itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::OtsuMultipleThresholdsCalculator  )  [protected]
 

template<class TInputHistogram>
virtual itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::~OtsuMultipleThresholdsCalculator  )  [inline, protected, virtual]
 

Definition at line 80 of file itkOtsuMultipleThresholdsCalculator.h.

References itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::FrequencyVectorType, itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::InstanceIdentifierVectorType, itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::MeanType, itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::MeanVectorType, and itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::OutputType.


Member Function Documentation

template<class TInputHistogram>
void itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::GenerateData  )  [protected, virtual]
 

Calculates the thresholds and save them

Implements itk::HistogramAlgorithmBase< TInputHistogram >.

template<class TInputHistogram>
virtual const char* itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::GetNameOfClass  )  const [virtual]
 

Standard Macros

Reimplemented from itk::HistogramAlgorithmBase< TInputHistogram >.

template<class TInputHistogram>
virtual unsigned long itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::GetNumberOfThresholds  )  [virtual]
 

Set/Get the number of thresholds.

template<class TInputHistogram>
const OutputType& itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::GetOutput  ) 
 

Returns the thresholds vector

template<class TInputHistogram>
bool itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::IncrementThresholds InstanceIdentifierVectorType thresholdIds,
MeanType  totalMean,
MeanVectorType classMean,
FrequencyVectorType classFrequency
[protected]
 

Increment the thresholds of one position

template<class TInputHistogram>
Pointer itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::New  )  [static]
 

Standard Macros

Reimplemented from itk::Object.

template<class TInputHistogram>
void itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::PrintSelf std::ostream &  os,
Indent  indent
const [protected, virtual]
 

Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from itk::HistogramAlgorithmBase< TInputHistogram >.

template<class TInputHistogram>
virtual void itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::SetNumberOfThresholds unsigned long  _arg  )  [virtual]
 

Set/Get the number of thresholds.


The documentation for this class was generated from the following file:
Generated at Thu May 25 02:01:00 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000