Slicer  4.11
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::NewOtsuThresholdImageFilter< TInputImage, TOutputImage > Class Template Reference

Threshold an image using the Otsu Threshold. More...

#include <Libs/vtkITK/itkNewOtsuThresholdImageFilter.h>

Inheritance diagram for itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >:
Inheritance graph
[legend]
Collaboration diagram for itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >:
Collaboration graph
[legend]

Public Types

typedef SmartPointer< const SelfConstPointer
 
typedef TInputImage::Pointer InputImagePointer
 
typedef TInputImage::RegionType InputImageRegionType
 
typedef TInputImage::IndexType InputIndexType
 
typedef TInputImage::PixelType InputPixelType
 
typedef TInputImage::SizeType InputSizeType
 
typedef TOutputImage::Pointer OutputImagePointer
 
typedef TOutputImage::RegionType OutputImageRegionType
 
typedef TOutputImage::IndexType OutputIndexType
 
typedef TOutputImage::PixelType OutputPixelType
 
typedef TOutputImage::SizeType OutputSizeType
 
typedef SmartPointer< SelfPointer
 
typedef NewOtsuThresholdImageFilter Self
 
typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass
 

Public Member Functions

 itkGetMacro (OutsideValue, OutputPixelType)
 
 itkGetMacro (InsideValue, OutputPixelType)
 
 itkGetMacro (NumberOfHistogramBins, unsigned long)
 
 itkGetMacro (Omega, double)
 
 itkGetMacro (Threshold, InputPixelType)
 
 itkNewMacro (Self)
 
 itkSetClampMacro (NumberOfHistogramBins, unsigned long, 1, NumericTraits< unsigned long >::max())
 
 itkSetMacro (OutsideValue, OutputPixelType)
 
 itkSetMacro (InsideValue, OutputPixelType)
 
 itkSetMacro (Omega, double)
 
 itkStaticConstMacro (InputImageDimension, unsigned int, TInputImage::ImageDimension)
 
 itkStaticConstMacro (OutputImageDimension, unsigned int, TOutputImage::ImageDimension)
 
 itkTypeMacro (NewOtsuThresholdImageFilter, ImageToImageFilter)
 

Protected Member Functions

void GenerateData () override
 
void GenerateInputRequestedRegion () override
 
 NewOtsuThresholdImageFilter ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 ~NewOtsuThresholdImageFilter () override=default
 

Detailed Description

template<class TInputImage, class TOutputImage>
class itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >

Threshold an image using the Otsu Threshold.

This filter creates a binary thresholded image that separates an image into foreground and background components. The filter computes the threshold using the OtsuThresholdImageCalculator and applies that threshold to the input image using the BinaryThresholdImageFilter. The NunberOfHistogram bins can be set for the Calculator. The InsideValue and OutsideValue can be set for the BinaryThresholdImageFilter.

See also
NewOtsuThresholdImageCalculator
BinaryThresholdImageFilter

Definition at line 42 of file itkNewOtsuThresholdImageFilter.h.

Member Typedef Documentation

◆ ConstPointer

template<class TInputImage , class TOutputImage >
typedef SmartPointer<const Self> itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::ConstPointer

Definition at line 50 of file itkNewOtsuThresholdImageFilter.h.

◆ InputImagePointer

template<class TInputImage , class TOutputImage >
typedef TInputImage::Pointer itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::InputImagePointer

Image related typedefs.

Definition at line 63 of file itkNewOtsuThresholdImageFilter.h.

◆ InputImageRegionType

template<class TInputImage , class TOutputImage >
typedef TInputImage::RegionType itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::InputImageRegionType

Definition at line 68 of file itkNewOtsuThresholdImageFilter.h.

◆ InputIndexType

template<class TInputImage , class TOutputImage >
typedef TInputImage::IndexType itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::InputIndexType

Definition at line 67 of file itkNewOtsuThresholdImageFilter.h.

◆ InputPixelType

template<class TInputImage , class TOutputImage >
typedef TInputImage::PixelType itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::InputPixelType

Image pixel value typedef.

Definition at line 59 of file itkNewOtsuThresholdImageFilter.h.

◆ InputSizeType

template<class TInputImage , class TOutputImage >
typedef TInputImage::SizeType itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::InputSizeType

Definition at line 66 of file itkNewOtsuThresholdImageFilter.h.

◆ OutputImagePointer

template<class TInputImage , class TOutputImage >
typedef TOutputImage::Pointer itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::OutputImagePointer

Definition at line 64 of file itkNewOtsuThresholdImageFilter.h.

◆ OutputImageRegionType

template<class TInputImage , class TOutputImage >
typedef TOutputImage::RegionType itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::OutputImageRegionType

Definition at line 71 of file itkNewOtsuThresholdImageFilter.h.

◆ OutputIndexType

template<class TInputImage , class TOutputImage >
typedef TOutputImage::IndexType itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::OutputIndexType

Definition at line 70 of file itkNewOtsuThresholdImageFilter.h.

◆ OutputPixelType

template<class TInputImage , class TOutputImage >
typedef TOutputImage::PixelType itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::OutputPixelType

Definition at line 60 of file itkNewOtsuThresholdImageFilter.h.

◆ OutputSizeType

template<class TInputImage , class TOutputImage >
typedef TOutputImage::SizeType itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::OutputSizeType

Definition at line 69 of file itkNewOtsuThresholdImageFilter.h.

◆ Pointer

template<class TInputImage , class TOutputImage >
typedef SmartPointer<Self> itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::Pointer

Definition at line 49 of file itkNewOtsuThresholdImageFilter.h.

◆ Self

template<class TInputImage , class TOutputImage >
typedef NewOtsuThresholdImageFilter itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::Self

Standard Self typedef

Definition at line 47 of file itkNewOtsuThresholdImageFilter.h.

◆ Superclass

template<class TInputImage , class TOutputImage >
typedef ImageToImageFilter<TInputImage,TOutputImage> itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::Superclass

Definition at line 48 of file itkNewOtsuThresholdImageFilter.h.

Constructor & Destructor Documentation

◆ NewOtsuThresholdImageFilter()

template<class TInputImage , class TOutputImage >
itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::NewOtsuThresholdImageFilter ( )
protected

◆ ~NewOtsuThresholdImageFilter()

template<class TInputImage , class TOutputImage >
itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::~NewOtsuThresholdImageFilter ( )
overrideprotecteddefault

Member Function Documentation

◆ GenerateData()

template<class TInputImage , class TOutputImage >
void itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::GenerateData ( )
overrideprotected

◆ GenerateInputRequestedRegion()

template<class TInputImage , class TOutputImage >
void itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::GenerateInputRequestedRegion ( )
overrideprotected

◆ itkGetMacro() [1/5]

template<class TInputImage , class TOutputImage >
itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::itkGetMacro ( OutsideValue  ,
OutputPixelType   
)

Get the "outside" pixel value.

◆ itkGetMacro() [2/5]

template<class TInputImage , class TOutputImage >
itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::itkGetMacro ( InsideValue  ,
OutputPixelType   
)

Get the "inside" pixel value.

◆ itkGetMacro() [3/5]

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

◆ itkGetMacro() [4/5]

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

◆ itkGetMacro() [5/5]

template<class TInputImage , class TOutputImage >
itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::itkGetMacro ( Threshold  ,
InputPixelType   
)

Get the computed threshold.

◆ itkNewMacro()

template<class TInputImage , class TOutputImage >
itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::itkNewMacro ( Self  )

Method for creation through the object factory.

◆ itkSetClampMacro()

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

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

◆ itkSetMacro() [1/3]

template<class TInputImage , class TOutputImage >
itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::itkSetMacro ( OutsideValue  ,
OutputPixelType   
)

Set the "outside" pixel value. The default value NumericTraits<OutputPixelType>::ZeroValue().

◆ itkSetMacro() [2/3]

template<class TInputImage , class TOutputImage >
itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::itkSetMacro ( InsideValue  ,
OutputPixelType   
)

Set the "inside" pixel value. The default value NumericTraits<OutputPixelType>::max()

◆ itkSetMacro() [3/3]

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

◆ itkStaticConstMacro() [1/2]

template<class TInputImage , class TOutputImage >
itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::itkStaticConstMacro ( InputImageDimension  ,
unsigned  int,
TInputImage::ImageDimension   
)

Image related typedefs.

◆ itkStaticConstMacro() [2/2]

template<class TInputImage , class TOutputImage >
itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::itkStaticConstMacro ( OutputImageDimension  ,
unsigned  int,
TOutputImage::ImageDimension   
)

◆ itkTypeMacro()

template<class TInputImage , class TOutputImage >
itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::itkTypeMacro ( NewOtsuThresholdImageFilter< TInputImage, TOutputImage >  ,
ImageToImageFilter   
)

Runtime information support.

◆ PrintSelf()

template<class TInputImage , class TOutputImage >
void itk::NewOtsuThresholdImageFilter< TInputImage, TOutputImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotected

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