ITK  4.1.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
itk::DoubleThresholdImageFilter< TInputImage, TOutputImage > Class Template Reference

#include <itkDoubleThresholdImageFilter.h>

+ Inheritance diagram for itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >:
+ Collaboration diagram for itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >:

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef
Superclass::InputImagePointer 
InputImagePointer
typedef Superclass::InputImageType InputImageType
typedef TInputImage::PixelType InputPixelType
typedef TOutputImage::PixelType OutputPixelType
typedef SmartPointer< SelfPointer
typedef DoubleThresholdImageFilter Self
typedef ImageToImageFilter
< TInputImage, TOutputImage > 
Superclass

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual OutputPixelType GetInsideValue () const
virtual const char * GetNameOfClass () const
virtual OutputPixelType GetOutsideValue () const
virtual void SetInsideValue (OutputPixelType _arg)
virtual void SetOutsideValue (OutputPixelType _arg)
 typedef (Concept::EqualityComparable< OutputPixelType >) OutputEqualityComparableCheck
 typedef (Concept::Comparable< InputPixelType >) InputComparableCheck
 typedef (Concept::OStreamWritable< InputPixelType >) InputOStreamWritableCheck
 typedef (Concept::OStreamWritable< OutputPixelType >) OutputOStreamWritableCheck
virtual void SetThreshold1 (InputPixelType _arg)
virtual void SetThreshold2 (InputPixelType _arg)
virtual void SetThreshold3 (InputPixelType _arg)
virtual void SetThreshold4 (InputPixelType _arg)
virtual InputPixelType GetThreshold1 () const
virtual InputPixelType GetThreshold2 () const
virtual InputPixelType GetThreshold3 () const
virtual InputPixelType GetThreshold4 () const
virtual void SetFullyConnected (bool _arg)
virtual const bool & GetFullyConnected ()
virtual void FullyConnectedOn ()
virtual void FullyConnectedOff ()

Static Public Member Functions

static Pointer New ()

Protected Member Functions

void EnlargeOutputRequestedRegion (DataObject *)
void GenerateData ()
void GenerateInputRequestedRegion ()
 DoubleThresholdImageFilter ()
virtual ~DoubleThresholdImageFilter ()
void PrintSelf (std::ostream &os, Indent indent) const

Private Member Functions

 DoubleThresholdImageFilter (const Self &)
void operator= (const Self &)

Private Attributes

bool m_FullyConnected
OutputPixelType m_InsideValue
unsigned long m_NumberOfIterationsUsed
OutputPixelType m_OutsideValue
InputPixelType m_Threshold1
InputPixelType m_Threshold2
InputPixelType m_Threshold3
InputPixelType m_Threshold4

Detailed Description

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

Binarize an input image using double thresholding.

Double threshold addresses the difficulty in selecting a threshold that will select the objects of interest without selecting extraneous objects. Double threshold considers two threshold ranges: a narrow range and a wide range (where the wide range encompasses the narrow range). If the wide range was used for a traditional threshold (where values inside the range map to the foreground and values outside the range map to the background), many extraneous pixels may survive the threshold operation. If the narrow range was used for a traditional threshold, then too few pixels may survive the threshold.

Double threshold uses the narrow threshold image as a marker image and the wide threshold image as a mask image in the geodesic dilation. Essentially, the marker image (narrow threshold) is dilated but constrained to lie within the mask image (wide threshold). Thus, only the objects of interest (those pixels that survived the narrow threshold) are extracted but the those objects appear in the final image as they would have if the wide threshold was used.

See also:
GrayscaleGeodesicDilateImageFilter
MorphologyImageFilter, GrayscaleDilateImageFilter, GrayscaleFunctionDilateImageFilter, BinaryDilateImageFilter

Definition at line 54 of file itkDoubleThresholdImageFilter.h.


Member Typedef Documentation

template<class TInputImage , class TOutputImage >
typedef SmartPointer< const Self > itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::ConstPointer
template<class TInputImage , class TOutputImage >
typedef Superclass::InputImagePointer itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::InputImagePointer

Types from the superclass

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 68 of file itkDoubleThresholdImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef Superclass::InputImageType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::InputImageType

Some convenient typedefs.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 72 of file itkDoubleThresholdImageFilter.h.

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

Pixel types.

Definition at line 75 of file itkDoubleThresholdImageFilter.h.

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

Definition at line 76 of file itkDoubleThresholdImageFilter.h.

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

Standard class typedefs.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 59 of file itkDoubleThresholdImageFilter.h.

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

Constructor & Destructor Documentation

template<class TInputImage , class TOutputImage >
itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::DoubleThresholdImageFilter ( ) [protected]

End concept checking

template<class TInputImage , class TOutputImage >
virtual itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::~DoubleThresholdImageFilter ( ) [inline, protected, virtual]

End concept checking

Definition at line 136 of file itkDoubleThresholdImageFilter.h.

template<class TInputImage , class TOutputImage >
itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::DoubleThresholdImageFilter ( const Self ) [private]

Member Function Documentation

template<class TInputImage , class TOutputImage >
virtual::itk::LightObject::Pointer itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::CreateAnother ( void  ) const [virtual]

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from itk::Object.

template<class TInputImage , class TOutputImage >
void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::EnlargeOutputRequestedRegion ( DataObject ) [protected, virtual]

DoubleThresholdImageFilter produces all of the output and must provide an implementation of EnlargeOutputRequestedRegion()

Reimplemented from itk::ProcessObject.

template<class TInputImage , class TOutputImage >
virtual void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::FullyConnectedOff ( ) [virtual]

Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.

template<class TInputImage , class TOutputImage >
virtual void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::FullyConnectedOn ( ) [virtual]

Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.

template<class TInputImage , class TOutputImage >
void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::GenerateData ( ) [protected, virtual]

Single threaded version of GenerateData(). DoubleThresholdImageFilter delegates its implementation to the GrayscaleGeodesicDilateImageFilter.

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage , class TOutputImage >
void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::GenerateInputRequestedRegion ( ) [protected, virtual]

DoubleThresholdImageFilter needs all of the input. So it must provide an implementation of GenerateInputRequestedRegion()

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
virtual const bool& itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::GetFullyConnected ( ) [virtual]

Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.

template<class TInputImage , class TOutputImage >
virtual OutputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::GetInsideValue ( ) const [virtual]

Get the "inside" pixel value.

template<class TInputImage , class TOutputImage >
virtual const char* itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::GetNameOfClass ( ) const [virtual]

Run-time type information (and related methods).

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
virtual OutputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::GetOutsideValue ( ) const [virtual]

Get the "outside" pixel value.

template<class TInputImage , class TOutputImage >
virtual InputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::GetThreshold1 ( ) const [virtual]

Get the threshold values.

template<class TInputImage , class TOutputImage >
virtual InputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::GetThreshold2 ( ) const [virtual]

Get the threshold values.

template<class TInputImage , class TOutputImage >
virtual InputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::GetThreshold3 ( ) const [virtual]

Get the threshold values.

template<class TInputImage , class TOutputImage >
virtual InputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::GetThreshold4 ( ) const [virtual]

Get the threshold values.

template<class TInputImage , class TOutputImage >
static Pointer itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::New ( ) [static]

Method for creation through the object factory.

Reimplemented from itk::Object.

template<class TInputImage , class TOutputImage >
void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::operator= ( const Self ) [private]

PushBackInput(), PushFronInput() in the public section force the input to be the type expected by an ImageToImageFilter. However, these methods end of "hiding" the versions from the superclass (ProcessObject) whose arguments are DataObjects. Here, we re-expose the versions from ProcessObject to avoid warnings about hiding methods from the superclass.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [protected, virtual]

End concept checking

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
virtual void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::SetFullyConnected ( bool  _arg) [virtual]

Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.

template<class TInputImage , class TOutputImage >
virtual void itk::DoubleThresholdImageFilter< 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::DoubleThresholdImageFilter< 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::DoubleThresholdImageFilter< TInputImage, TOutputImage >::SetThreshold1 ( InputPixelType  _arg) [virtual]

Set the thresholds. Four thresholds should be specified. The two lower thresholds default to NumericTraits<InputPixelType>::NonpositiveMin(). The two upper thresholds default NumericTraits<InputPixelType>::max. Threshold1 <= Threshold2 <= Threshold3 <= Threshold4.

template<class TInputImage , class TOutputImage >
virtual void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::SetThreshold2 ( InputPixelType  _arg) [virtual]

Set the thresholds. Four thresholds should be specified. The two lower thresholds default to NumericTraits<InputPixelType>::NonpositiveMin(). The two upper thresholds default NumericTraits<InputPixelType>::max. Threshold1 <= Threshold2 <= Threshold3 <= Threshold4.

template<class TInputImage , class TOutputImage >
virtual void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::SetThreshold3 ( InputPixelType  _arg) [virtual]

Set the thresholds. Four thresholds should be specified. The two lower thresholds default to NumericTraits<InputPixelType>::NonpositiveMin(). The two upper thresholds default NumericTraits<InputPixelType>::max. Threshold1 <= Threshold2 <= Threshold3 <= Threshold4.

template<class TInputImage , class TOutputImage >
virtual void itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::SetThreshold4 ( InputPixelType  _arg) [virtual]

Set the thresholds. Four thresholds should be specified. The two lower thresholds default to NumericTraits<InputPixelType>::NonpositiveMin(). The two upper thresholds default NumericTraits<InputPixelType>::max. Threshold1 <= Threshold2 <= Threshold3 <= Threshold4.

template<class TInputImage , class TOutputImage >
itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::typedef ( Concept::EqualityComparable< OutputPixelType )

Begin concept checking This class requires OutputEqualityComparableCheck in the form of ( Concept::EqualityComparable< OutputPixelType > )

template<class TInputImage , class TOutputImage >
itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::typedef ( Concept::Comparable< InputPixelType )

This class requires InputComparableCheck in the form of ( Concept::Comparable< InputPixelType > )

template<class TInputImage , class TOutputImage >
itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::typedef ( Concept::OStreamWritable< InputPixelType )

This class requires InputOStreamWritableCheck in the form of ( Concept::OStreamWritable< InputPixelType > )

template<class TInputImage , class TOutputImage >
itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::typedef ( Concept::OStreamWritable< OutputPixelType )

This class requires OutputOStreamWritableCheck in the form of ( Concept::OStreamWritable< OutputPixelType > )


Member Data Documentation

template<class TInputImage , class TOutputImage >
bool itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::m_FullyConnected [private]

Definition at line 167 of file itkDoubleThresholdImageFilter.h.

template<class TInputImage , class TOutputImage >
OutputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::m_InsideValue [private]

Definition at line 162 of file itkDoubleThresholdImageFilter.h.

template<class TInputImage , class TOutputImage >
unsigned long itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::m_NumberOfIterationsUsed [private]

Definition at line 165 of file itkDoubleThresholdImageFilter.h.

template<class TInputImage , class TOutputImage >
OutputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::m_OutsideValue [private]

Definition at line 163 of file itkDoubleThresholdImageFilter.h.

template<class TInputImage , class TOutputImage >
InputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::m_Threshold1 [private]

Definition at line 157 of file itkDoubleThresholdImageFilter.h.

template<class TInputImage , class TOutputImage >
InputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::m_Threshold2 [private]

Definition at line 158 of file itkDoubleThresholdImageFilter.h.

template<class TInputImage , class TOutputImage >
InputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::m_Threshold3 [private]

Definition at line 159 of file itkDoubleThresholdImageFilter.h.

template<class TInputImage , class TOutputImage >
InputPixelType itk::DoubleThresholdImageFilter< TInputImage, TOutputImage >::m_Threshold4 [private]

Definition at line 160 of file itkDoubleThresholdImageFilter.h.


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