Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Protected Member Functions
itk::NewOtsuThresholdImageCalculator< TInputImage > Class Template Reference

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

#include <Libs/vtkITK/itkNewOtsuThresholdImageCalculator.h>

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

Public Types

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

Public Member Functions

void Compute (void)
 
 itkGetMacro (Threshold, PixelType)
 
 itkGetMacro (NumberOfHistogramBins, unsigned long)
 
 itkGetMacro (Omega, double)
 
 itkNewMacro (Self)
 
 itkSetClampMacro (NumberOfHistogramBins, unsigned long, 1, NumericTraits< unsigned long >::max())
 
 itkSetConstObjectMacro (Image, ImageType)
 
 itkSetMacro (Omega, double)
 
 itkTypeMacro (NewOtsuThresholdImageCalculator, Object)
 

Protected Member Functions

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

Detailed Description

template<class TInputImage>
class itk::NewOtsuThresholdImageCalculator< 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 28 of file itkNewOtsuThresholdImageCalculator.h.

Member Typedef Documentation

◆ ConstPointer

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

Definition at line 35 of file itkNewOtsuThresholdImageCalculator.h.

◆ ImageConstPointer

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

Const Pointer type for the image.

Definition at line 50 of file itkNewOtsuThresholdImageCalculator.h.

◆ ImagePointer

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

Pointer type for the image.

Definition at line 47 of file itkNewOtsuThresholdImageCalculator.h.

◆ ImageType

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

Type definition for the input image.

Definition at line 44 of file itkNewOtsuThresholdImageCalculator.h.

◆ PixelType

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

Type definition for the input image pixel type.

Definition at line 53 of file itkNewOtsuThresholdImageCalculator.h.

◆ Pointer

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

Definition at line 34 of file itkNewOtsuThresholdImageCalculator.h.

◆ Self

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

Standard class typedefs.

Definition at line 32 of file itkNewOtsuThresholdImageCalculator.h.

◆ Superclass

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

Definition at line 33 of file itkNewOtsuThresholdImageCalculator.h.

Constructor & Destructor Documentation

◆ NewOtsuThresholdImageCalculator()

template<class TInputImage >
itk::NewOtsuThresholdImageCalculator< TInputImage >::NewOtsuThresholdImageCalculator ( )
protected

◆ ~NewOtsuThresholdImageCalculator()

template<class TInputImage >
virtual itk::NewOtsuThresholdImageCalculator< TInputImage >::~NewOtsuThresholdImageCalculator ( )
inlineprotectedvirtual

Definition at line 74 of file itkNewOtsuThresholdImageCalculator.h.

Member Function Documentation

◆ Compute()

template<class TInputImage >
void itk::NewOtsuThresholdImageCalculator< TInputImage >::Compute ( void  )

Compute the Otsu's threshold for the input image.

◆ itkGetMacro() [1/3]

template<class TInputImage >
itk::NewOtsuThresholdImageCalculator< TInputImage >::itkGetMacro ( Threshold  ,
PixelType   
)

Return the Otsu's threshold value.

◆ itkGetMacro() [2/3]

template<class TInputImage >
itk::NewOtsuThresholdImageCalculator< TInputImage >::itkGetMacro ( NumberOfHistogramBins  ,
unsigned  long 
)

◆ itkGetMacro() [3/3]

template<class TInputImage >
itk::NewOtsuThresholdImageCalculator< TInputImage >::itkGetMacro ( Omega  ,
double   
)

◆ itkNewMacro()

template<class TInputImage >
itk::NewOtsuThresholdImageCalculator< TInputImage >::itkNewMacro ( Self  )

Method for creation through the object factory.

◆ itkSetClampMacro()

template<class TInputImage >
itk::NewOtsuThresholdImageCalculator< TInputImage >::itkSetClampMacro ( NumberOfHistogramBins  ,
unsigned  long,
,
NumericTraits< unsigned long >  ::max() 
)

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

◆ itkSetConstObjectMacro()

template<class TInputImage >
itk::NewOtsuThresholdImageCalculator< TInputImage >::itkSetConstObjectMacro ( Image  ,
ImageType   
)

Set the input image.

◆ itkSetMacro()

template<class TInputImage >
itk::NewOtsuThresholdImageCalculator< TInputImage >::itkSetMacro ( Omega  ,
double   
)

◆ itkTypeMacro()

template<class TInputImage >
itk::NewOtsuThresholdImageCalculator< TInputImage >::itkTypeMacro ( NewOtsuThresholdImageCalculator< TInputImage >  ,
Object   
)

Run-time type information (and related methods).

◆ PrintSelf()

template<class TInputImage >
void itk::NewOtsuThresholdImageCalculator< TInputImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protected

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