ITK  4.3.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
itk::OtsuMultipleThresholdsCalculator< TInputHistogram > Class Template Reference

#include <itkOtsuMultipleThresholdsCalculator.h>

+ Inheritance diagram for itk::OtsuMultipleThresholdsCalculator< TInputHistogram >:
+ Collaboration diagram for itk::OtsuMultipleThresholdsCalculator< TInputHistogram >:

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

Public Types

typedef SmartPointer< const SelfConstPointer
 
typedef
TInputHistogram::AbsoluteFrequencyType 
FrequencyType
 
typedef std::vector
< FrequencyType
FrequencyVectorType
 
typedef
TInputHistogram::InstanceIdentifier 
InstanceIdentifierType
 
typedef std::vector
< InstanceIdentifierType
InstanceIdentifierVectorType
 
typedef NumericTraits
< MeasurementType >::RealType 
MeanType
 
typedef std::vector< MeanTypeMeanVectorType
 
typedef
TInputHistogram::MeasurementType 
MeasurementType
 
typedef std::vector
< MeasurementType
OutputType
 
typedef SmartPointer< SelfPointer
 
typedef
OtsuMultipleThresholdsCalculator 
Self
 
typedef HistogramAlgorithmBase
< TInputHistogram > 
Superclass
 
typedef NumericTraits
< MeasurementType >::RealType 
VarianceType
 
- Public Types inherited from itk::HistogramAlgorithmBase< TInputHistogram >
typedef SmartPointer< const SelfConstPointer
 
typedef TInputHistogram InputHistogramType
 
typedef SmartPointer< SelfPointer
 
typedef HistogramAlgorithmBase Self
 
typedef Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

const OutputTypeGetOutput ()
 
virtual void SetNumberOfThresholds (SizeValueType _arg)
 
virtual SizeValueType GetNumberOfThresholds () const
 
- Public Member Functions inherited from itk::HistogramAlgorithmBase< TInputHistogram >
const TInputHistogram * GetInputHistogram () const
 
void Update ()
 
void SetInputHistogram (const TInputHistogram *histogram)
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary (void)
 
const MetaDataDictionaryGetMetaDataDictionary (void) const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
virtual void Register () const
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetReferenceCount (int)
 
virtual void UnRegister () const
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Protected Member Functions

void GenerateData ()
 
bool IncrementThresholds (InstanceIdentifierVectorType &thresholdIds, MeanType totalMean, MeanVectorType &classMean, FrequencyVectorType &classFrequency)
 
 OtsuMultipleThresholdsCalculator ()
 
void PrintSelf (std::ostream &os, Indent indent) const
 
virtual ~OtsuMultipleThresholdsCalculator ()
 
- Protected Member Functions inherited from itk::HistogramAlgorithmBase< TInputHistogram >
 HistogramAlgorithmBase ()
 
virtual ~HistogramAlgorithmBase ()
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object ()
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Attributes

SizeValueType m_NumberOfThresholds
 
OutputType m_Output
 
virtual const char * GetNameOfClass () const
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
static Pointer New ()
 

Additional Inherited Members

- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool flag)
 
- Protected Types inherited from itk::LightObject
typedef int InternalReferenceCountType
 
- Protected Attributes inherited from itk::LightObject
InternalReferenceCountType m_ReferenceCount
 
SimpleFastMutexLock m_ReferenceCountLock
 

Member Typedef Documentation

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

Definition at line 49 of file itkOtsuMultipleThresholdsCalculator.h.

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

Definition at line 52 of file itkOtsuMultipleThresholdsCalculator.h.

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

Definition at line 58 of file itkOtsuMultipleThresholdsCalculator.h.

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

Definition at line 60 of file itkOtsuMultipleThresholdsCalculator.h.

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

Definition at line 61 of file itkOtsuMultipleThresholdsCalculator.h.

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

Definition at line 54 of file itkOtsuMultipleThresholdsCalculator.h.

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

Definition at line 57 of file itkOtsuMultipleThresholdsCalculator.h.

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

Definition at line 51 of file itkOtsuMultipleThresholdsCalculator.h.

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

Typedef for the thresholds output

Definition at line 65 of file itkOtsuMultipleThresholdsCalculator.h.

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

Definition at line 48 of file itkOtsuMultipleThresholdsCalculator.h.

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

Standard class typedefs.

Definition at line 46 of file itkOtsuMultipleThresholdsCalculator.h.

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

Definition at line 47 of file itkOtsuMultipleThresholdsCalculator.h.

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

Definition at line 55 of file itkOtsuMultipleThresholdsCalculator.h.

Constructor & Destructor Documentation

template<class TInputHistogram >
itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::OtsuMultipleThresholdsCalculator ( )
protected
template<class TInputHistogram >
virtual itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::~OtsuMultipleThresholdsCalculator ( )
inlineprotectedvirtual

Definition at line 81 of file itkOtsuMultipleThresholdsCalculator.h.

Member Function Documentation

template<class TInputHistogram >
virtual::itk::LightObject::Pointer itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::CreateAnother ( void  ) const
virtual

Standard Macros

Reimplemented from itk::Object.

template<class TInputHistogram >
void itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::GenerateData ( )
protectedvirtual

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 SizeValueType itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::GetNumberOfThresholds ( ) const
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 >
static Pointer itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::New ( )
static

Standard Macros

template<class TInputHistogram >
void itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protectedvirtual

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 ( SizeValueType  _arg)
virtual

Set/Get the number of thresholds.

Member Data Documentation

template<class TInputHistogram >
SizeValueType itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::m_NumberOfThresholds
private

Internal thresholds storage

Definition at line 95 of file itkOtsuMultipleThresholdsCalculator.h.

template<class TInputHistogram >
OutputType itk::OtsuMultipleThresholdsCalculator< TInputHistogram >::m_Output
private

Definition at line 96 of file itkOtsuMultipleThresholdsCalculator.h.


The documentation for this class was generated from the following file: