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

itk::OtsuThresholdImageCalculator< TInputImage > Class Template Reference
[Operators]

Computes the Otsu's threshold for an image. More...

#include <itkOtsuThresholdImageCalculator.h>

Inheritance diagram for itk::OtsuThresholdImageCalculator< TInputImage >:

Inheritance graph
[legend]
Collaboration diagram for itk::OtsuThresholdImageCalculator< TInputImage >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef OtsuThresholdImageCalculator Self
typedef Object Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef TInputImage ImageType
typedef TInputImage::Pointer ImagePointer
typedef TInputImage::ConstPointer ImageConstPointer
typedef TInputImage::PixelType PixelType

Public Member Functions

virtual const char * GetNameOfClass () const
virtual void SetImage (const ImageType *_arg)
void Compute (void)
virtual PixelType GetThreshold ()
virtual void SetNumberOfHistogramBins (unsigned long _arg)
virtual unsigned long GetNumberOfHistogramBins ()

Static Public Member Functions

Pointer New ()

Protected Member Functions

 OtsuThresholdImageCalculator ()
virtual ~OtsuThresholdImageCalculator ()
void PrintSelf (std::ostream &os, Indent indent) const

Detailed Description

template<class TInputImage>
class itk::OtsuThresholdImageCalculator< TInputImage >

Computes the Otsu's threshold for an image.

This calculator computes the Otsu's threshold which separates an image into foreground and background components. The method relies on a histogram of image intensities. The basic idea is to maximize the between-class variance.

This class is templated over the input image type.

Warning:
This method assumes that the input image consists of scalar pixel types.

Definition at line 43 of file itkOtsuThresholdImageCalculator.h.


Member Typedef Documentation

template<class TInputImage>
typedef SmartPointer<const Self> itk::OtsuThresholdImageCalculator< TInputImage >::ConstPointer
 

Reimplemented from itk::Object.

Definition at line 50 of file itkOtsuThresholdImageCalculator.h.

template<class TInputImage>
typedef TInputImage::ConstPointer itk::OtsuThresholdImageCalculator< TInputImage >::ImageConstPointer
 

Const Pointer type for the image.

Definition at line 65 of file itkOtsuThresholdImageCalculator.h.

Referenced by itk::OtsuThresholdImageCalculator< TInputImage >::~OtsuThresholdImageCalculator().

template<class TInputImage>
typedef TInputImage::Pointer itk::OtsuThresholdImageCalculator< TInputImage >::ImagePointer
 

Pointer type for the image.

Definition at line 62 of file itkOtsuThresholdImageCalculator.h.

template<class TInputImage>
typedef TInputImage itk::OtsuThresholdImageCalculator< TInputImage >::ImageType
 

Type definition for the input image.

Definition at line 59 of file itkOtsuThresholdImageCalculator.h.

template<class TInputImage>
typedef TInputImage::PixelType itk::OtsuThresholdImageCalculator< TInputImage >::PixelType
 

Type definition for the input image pixel type.

Definition at line 68 of file itkOtsuThresholdImageCalculator.h.

Referenced by itk::OtsuThresholdImageCalculator< TInputImage >::~OtsuThresholdImageCalculator().

template<class TInputImage>
typedef SmartPointer<Self> itk::OtsuThresholdImageCalculator< TInputImage >::Pointer
 

Reimplemented from itk::Object.

Definition at line 49 of file itkOtsuThresholdImageCalculator.h.

template<class TInputImage>
typedef OtsuThresholdImageCalculator itk::OtsuThresholdImageCalculator< TInputImage >::Self
 

Standard class typedefs.

Reimplemented from itk::Object.

Definition at line 47 of file itkOtsuThresholdImageCalculator.h.

Referenced by itk::OtsuThresholdImageCalculator< TInputImage >::~OtsuThresholdImageCalculator().

template<class TInputImage>
typedef Object itk::OtsuThresholdImageCalculator< TInputImage >::Superclass
 

Reimplemented from itk::Object.

Definition at line 48 of file itkOtsuThresholdImageCalculator.h.


Constructor & Destructor Documentation

template<class TInputImage>
itk::OtsuThresholdImageCalculator< TInputImage >::OtsuThresholdImageCalculator  )  [protected]
 

template<class TInputImage>
virtual itk::OtsuThresholdImageCalculator< TInputImage >::~OtsuThresholdImageCalculator  )  [inline, protected, virtual]
 

Definition at line 87 of file itkOtsuThresholdImageCalculator.h.

References itk::OtsuThresholdImageCalculator< TInputImage >::ImageConstPointer, itk::OtsuThresholdImageCalculator< TInputImage >::PixelType, and itk::OtsuThresholdImageCalculator< TInputImage >::Self.


Member Function Documentation

template<class TInputImage>
void itk::OtsuThresholdImageCalculator< TInputImage >::Compute void   ) 
 

Compute the Otsu's threshold for the input image.

template<class TInputImage>
virtual const char* itk::OtsuThresholdImageCalculator< TInputImage >::GetNameOfClass  )  const [virtual]
 

Run-time type information (and related methods).

Reimplemented from itk::Object.

template<class TInputImage>
virtual unsigned long itk::OtsuThresholdImageCalculator< TInputImage >::GetNumberOfHistogramBins  )  [virtual]
 

Set/Get the number of histogram bins. Default is 128.

template<class TInputImage>
virtual PixelType itk::OtsuThresholdImageCalculator< TInputImage >::GetThreshold  )  [virtual]
 

Return the Otsu's threshold value.

template<class TInputImage>
Pointer itk::OtsuThresholdImageCalculator< TInputImage >::New  )  [static]
 

Method for creation through the object factory.

Reimplemented from itk::Object.

template<class TInputImage>
void itk::OtsuThresholdImageCalculator< TInputImage >::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::Object.

template<class TInputImage>
virtual void itk::OtsuThresholdImageCalculator< TInputImage >::SetImage const ImageType _arg  )  [virtual]
 

Set the input image.

template<class TInputImage>
virtual void itk::OtsuThresholdImageCalculator< TInputImage >::SetNumberOfHistogramBins unsigned long  _arg  )  [virtual]
 

Set/Get the number of histogram bins. Default is 128.


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