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

itk::BinaryThresholdImageFilter< TInputImage, TOutputImage > Class Template Reference
[Intensity Image FiltersMultithreaded Filters]

Binarize an input image by thresholding. More...

#include <itkBinaryThresholdImageFilter.h>

Inheritance diagram for itk::BinaryThresholdImageFilter:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef BinaryThresholdImageFilter Self
typedef UnaryFunctorImageFilter<
TInputImage, TOutputImage,
Functor::BinaryThreshold<
typename TInputImage::PixelType,
typename TOutputImage::PixelType > > 
Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef TInputImage::PixelType InputPixelType
typedef TOutputImage::PixelType OutputPixelType
enum  { PixelTypeComparable = 0 }

Public Methods

virtual const char * GetClassName () const
virtual void SetOutsideValue (OutputPixelType _arg)
virtual OutputPixelType GetOutsideValue ()
virtual void SetInsideValue (OutputPixelType _arg)
virtual OutputPixelType GetInsideValue ()
virtual void SetUpperThreshold (InputPixelType _arg)
virtual void SetLowerThreshold (InputPixelType _arg)
virtual InputPixelType GetUpperThreshold ()
virtual InputPixelType GetLowerThreshold ()

Static Public Methods

Pointer New ()

Protected Methods

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

Detailed Description

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

Binarize an input image by thresholding.

This filter produces an output image whose pixels are either one of two values ( OutsideValue or InsideValue ), depending on whether of not the corresponding input image pixel lie between the two thresholds ( LowerThreshold and UpperThreshold ). Values equal to either threshold is considered to be between the thresholds.

This filter is templated over the input image type and the output image type.

The filter expect both images to have the same number of dimensions.

Definition at line 80 of file itkBinaryThresholdImageFilter.h.


Member Typedef Documentation

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

Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::BinaryThreshold< TInputImage::PixelType, TOutputImage::PixelType > >.

Definition at line 96 of file itkBinaryThresholdImageFilter.h.

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

Pixel types.

Definition at line 105 of file itkBinaryThresholdImageFilter.h.

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

Definition at line 106 of file itkBinaryThresholdImageFilter.h.

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

Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::BinaryThreshold< TInputImage::PixelType, TOutputImage::PixelType > >.

Definition at line 95 of file itkBinaryThresholdImageFilter.h.

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

Standard class typedefs.

Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::BinaryThreshold< TInputImage::PixelType, TOutputImage::PixelType > >.

Definition at line 89 of file itkBinaryThresholdImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef UnaryFunctorImageFilter<TInputImage,TOutputImage, Functor::BinaryThreshold< typename TInputImage::PixelType, typename TOutputImage::PixelType> > itk::BinaryThresholdImageFilter< TInputImage, TOutputImage >::Superclass
 

Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::BinaryThreshold< TInputImage::PixelType, TOutputImage::PixelType > >.

Definition at line 94 of file itkBinaryThresholdImageFilter.h.


Member Enumeration Documentation

template<class TInputImage, class TOutputImage>
anonymous enum
 

The input pixel type must support comparison operators.

Enumeration values:
PixelTypeComparable 

Definition at line 109 of file itkBinaryThresholdImageFilter.h.


Constructor & Destructor Documentation

template<class TInputImage, class TOutputImage>
itk::BinaryThresholdImageFilter< TInputImage, TOutputImage >::BinaryThresholdImageFilter   [protected]
 

template<class TInputImage, class TOutputImage>
virtual itk::BinaryThresholdImageFilter< TInputImage, TOutputImage >::~BinaryThresholdImageFilter   [inline, protected, virtual]
 

Definition at line 141 of file itkBinaryThresholdImageFilter.h.

References HardConnectedComponentImageFilter::InputPixelType, and HardConnectedComponentImageFilter::OutputPixelType.


Member Function Documentation

template<class TInputImage, class TOutputImage>
virtual void itk::BinaryThresholdImageFilter< TInputImage, TOutputImage >::BeforeThreadedGenerateData   [protected, virtual]
 

This method is used to set the state of the filter before multi-threading.

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage, class TOutputImage>
virtual const char* itk::BinaryThresholdImageFilter< TInputImage, TOutputImage >::GetClassName   const [virtual]
 

Run-time type information (and related methods).

Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::BinaryThreshold< TInputImage::PixelType, TOutputImage::PixelType > >.

template<class TInputImage, class TOutputImage>
virtual OutputPixelType itk::BinaryThresholdImageFilter< TInputImage, TOutputImage >::GetInsideValue   [virtual]
 

Get the "inside" pixel value.

template<class TInputImage, class TOutputImage>
virtual InputPixelType itk::BinaryThresholdImageFilter< TInputImage, TOutputImage >::GetLowerThreshold   [virtual]
 

Get the threshold values.

template<class TInputImage, class TOutputImage>
virtual OutputPixelType itk::BinaryThresholdImageFilter< TInputImage, TOutputImage >::GetOutsideValue   [virtual]
 

Get the "outside" pixel value.

template<class TInputImage, class TOutputImage>
virtual InputPixelType itk::BinaryThresholdImageFilter< TInputImage, TOutputImage >::GetUpperThreshold   [virtual]
 

Get the threshold values.

template<class TInputImage, class TOutputImage>
Pointer itk::BinaryThresholdImageFilter< TInputImage, TOutputImage >::New   [static]
 

Method for creation through the object factory.

Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::BinaryThreshold< TInputImage::PixelType, TOutputImage::PixelType > >.

template<class TInputImage, class TOutputImage>
void itk::BinaryThresholdImageFilter< TInputImage, TOutputImage >::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::ImageToImageFilter< TInputImage, TOutputImage >.

template<class TInputImage, class TOutputImage>
virtual void itk::BinaryThresholdImageFilter< TInputImage, TOutputImage >::SetInsideValue OutputPixelType    _arg [virtual]
 

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

template<class TInputImage, class TOutputImage>
virtual void itk::BinaryThresholdImageFilter< TInputImage, TOutputImage >::SetLowerThreshold InputPixelType    _arg [virtual]
 

Set the thresholds. The default lower threshold is NumericTraits<InputPixelType>::NonpositiveMin(). The default upper threshold is NumericTraits<InputPixelType>::max. An execption is thrown if the lower threshold is greater than the upper threshold.

template<class TInputImage, class TOutputImage>
virtual void itk::BinaryThresholdImageFilter< TInputImage, TOutputImage >::SetOutsideValue OutputPixelType    _arg [virtual]
 

Set the "outside" pixel value. The default value NumericTraits<OutputPixelType>::Zero.

template<class TInputImage, class TOutputImage>
virtual void itk::BinaryThresholdImageFilter< TInputImage, TOutputImage >::SetUpperThreshold InputPixelType    _arg [virtual]
 

Set the thresholds. The default lower threshold is NumericTraits<InputPixelType>::NonpositiveMin(). The default upper threshold is NumericTraits<InputPixelType>::max. An execption is thrown if the lower threshold is greater than the upper threshold.


The documentation for this class was generated from the following file:
Generated at Wed Mar 12 01:14:07 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000