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::VotingBinaryImageFilter< TInputImage, TOutputImage > Class Template Reference

#include <itkVotingBinaryImageFilter.h>

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

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef InputImageType::RegionType InputImageRegionType
typedef TInputImage InputImageType
typedef InputImageType::PixelType InputPixelType
typedef InputImageType::SizeType InputSizeType
typedef OutputImageType::RegionType OutputImageRegionType
typedef TOutputImage OutputImageType
typedef OutputImageType::PixelType OutputPixelType
typedef SmartPointer< SelfPointer
typedef VotingBinaryImageFilter Self
typedef ImageToImageFilter
< InputImageType,
OutputImageType
Superclass

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual void GenerateInputRequestedRegion () throw ( InvalidRequestedRegionError )
virtual const char * GetNameOfClass () const
virtual const InputSizeTypeGetRadius ()
virtual void SetRadius (InputSizeType _arg)
 typedef (Concept::EqualityComparable< InputPixelType >) InputEqualityComparableCheck
 typedef (Concept::Convertible< int, InputPixelType >) IntConvertibleToInputCheck
 typedef (Concept::Convertible< InputPixelType, OutputPixelType >) InputConvertibleToOutputCheck
 typedef (Concept::SameDimension< InputImageDimension, OutputImageDimension >) SameDimensionCheck
 typedef (Concept::OStreamWritable< InputPixelType >) InputOStreamWritableCheck
virtual void SetBackgroundValue (InputPixelType _arg)
virtual void SetForegroundValue (InputPixelType _arg)
virtual const InputPixelTypeGetBackgroundValue ()
virtual const InputPixelTypeGetForegroundValue ()
virtual const unsigned int & GetBirthThreshold ()
virtual void SetBirthThreshold (unsigned int _arg)
virtual const unsigned int & GetSurvivalThreshold ()
virtual void SetSurvivalThreshold (unsigned int _arg)

Static Public Member Functions

static Pointer New ()

Static Public Attributes

static const unsigned int InputImageDimension = TInputImage::ImageDimension
static const unsigned int OutputImageDimension = TOutputImage::ImageDimension

Protected Member Functions

void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
 VotingBinaryImageFilter ()
virtual ~VotingBinaryImageFilter ()
void PrintSelf (std::ostream &os, Indent indent) const

Private Member Functions

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

Private Attributes

InputPixelType m_BackgroundValue
unsigned int m_BirthThreshold
InputPixelType m_ForegroundValue
InputSizeType m_Radius
unsigned int m_SurvivalThreshold

Detailed Description

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

Applies a voting operation in a neighborhood of each pixel.

Note:
Pixels which are not Foreground or Background will remain unchanged.
See also:
Image
Neighborhood
NeighborhoodOperator
NeighborhoodIterator

Definition at line 39 of file itkVotingBinaryImageFilter.h.


Member Typedef Documentation

template<class TInputImage , class TOutputImage >
typedef SmartPointer< const Self > itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::ConstPointer
template<class TInputImage , class TOutputImage >
typedef InputImageType::RegionType itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::InputImageRegionType
template<class TInputImage , class TOutputImage >
typedef TInputImage itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::InputImageType

Convenient typedefs for simplifying declarations.

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

Reimplemented in itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >.

Definition at line 51 of file itkVotingBinaryImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef InputImageType::PixelType itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::InputPixelType
template<class TInputImage , class TOutputImage >
typedef InputImageType::SizeType itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::InputSizeType
template<class TInputImage , class TOutputImage >
typedef OutputImageType::RegionType itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::OutputImageRegionType
template<class TInputImage , class TOutputImage >
typedef TOutputImage itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::OutputImageType

Some convenient typedefs.

Reimplemented from itk::ImageSource< TOutputImage >.

Reimplemented in itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >.

Definition at line 52 of file itkVotingBinaryImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef OutputImageType::PixelType itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::OutputPixelType
template<class TInputImage , class TOutputImage >
typedef SmartPointer< Self > itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::Pointer
template<class TInputImage , class TOutputImage >
typedef VotingBinaryImageFilter itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::Self
template<class TInputImage , class TOutputImage >
typedef ImageToImageFilter< InputImageType, OutputImageType > itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::Superclass

Constructor & Destructor Documentation

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

End concept checking

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

End concept checking

Definition at line 131 of file itkVotingBinaryImageFilter.h.

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

Member Function Documentation

template<class TInputImage , class TOutputImage >
virtual::itk::LightObject::Pointer itk::VotingBinaryImageFilter< 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.

Reimplemented in itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
virtual void itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::GenerateInputRequestedRegion ( ) throw ( InvalidRequestedRegionError ) [virtual]

VotingBinaryImageFilter needs a larger input requested region than the output requested region. As such, VotingBinaryImageFilter needs to provide an implementation for GenerateInputRequestedRegion() in order to inform the pipeline execution model.

See also:
ImageToImageFilter::GenerateInputRequestedRegion()

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

template<class TInputImage , class TOutputImage >
virtual const InputPixelType& itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::GetBackgroundValue ( ) [virtual]

Get the value associated with the Foreground (or the object) on the binary input image and the Background .

template<class TInputImage , class TOutputImage >
virtual const unsigned int& itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::GetBirthThreshold ( ) [virtual]

Birth threshold. Pixels that are OFF will turn ON when the number of neighbors ON is larger than the value defined in this threshold.

template<class TInputImage , class TOutputImage >
virtual const InputPixelType& itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::GetForegroundValue ( ) [virtual]

Get the value associated with the Foreground (or the object) on the binary input image and the Background .

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

Run-time type information (and related methods).

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

Reimplemented in itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
virtual const InputSizeType& itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::GetRadius ( ) [virtual]

Get the radius of the neighborhood used to compute the median

template<class TInputImage , class TOutputImage >
virtual const unsigned int& itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::GetSurvivalThreshold ( ) [virtual]

Survival threshold. Pixels that are ON will turn OFF when the number of neighbors ON is smaller than the value defined in this survival threshold.

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

Method for creation through the object factory.

Reimplemented from itk::Object.

Reimplemented in itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >.

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

Reimplemented in itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >.

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

Set the value associated with the Foreground (or the object) on the binary input image and the Background .

template<class TInputImage , class TOutputImage >
virtual void itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::SetBirthThreshold ( unsigned int  _arg) [virtual]

Birth threshold. Pixels that are OFF will turn ON when the number of neighbors ON is larger than the value defined in this threshold.

Reimplemented in itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >.

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

Set the value associated with the Foreground (or the object) on the binary input image and the Background .

template<class TInputImage , class TOutputImage >
virtual void itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::SetRadius ( InputSizeType  _arg) [virtual]

Set the radius of the neighborhood used to compute the median.

template<class TInputImage , class TOutputImage >
virtual void itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::SetSurvivalThreshold ( unsigned int  _arg) [virtual]

Survival threshold. Pixels that are ON will turn OFF when the number of neighbors ON is smaller than the value defined in this survival threshold.

Reimplemented in itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
void itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::ThreadedGenerateData ( const OutputImageRegionType outputRegionForThread,
ThreadIdType  threadId 
) [protected, virtual]

VotingBinaryImageFilter can be implemented as a multithreaded filter. Therefore, this implementation provides a ThreadedGenerateData() routine which is called for each processing thread. The output image data is allocated automatically by the superclass prior to calling ThreadedGenerateData(). ThreadedGenerateData can only write to the portion of the output image specified by the parameter "outputRegionForThread"

See also:
ImageToImageFilter::ThreadedGenerateData(), ImageToImageFilter::GenerateData()

Reimplemented from itk::ImageSource< TOutputImage >.

Reimplemented in itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::typedef ( Concept::EqualityComparable< InputPixelType )

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

template<class TInputImage , class TOutputImage >
itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::typedef ( Concept::Convertible< int, InputPixelType )

This class requires IntConvertibleToInputCheck in the form of ( Concept::Convertible< int, InputPixelType > )

Reimplemented in itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::typedef ( Concept::Convertible< InputPixelType, OutputPixelType )

This class requires InputConvertibleToOutputCheck in the form of ( Concept::Convertible< InputPixelType, OutputPixelType > )

template<class TInputImage , class TOutputImage >
itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::typedef ( Concept::SameDimension< InputImageDimension, OutputImageDimension )

This class requires SameDimensionCheck in the form of ( Concept::SameDimension< InputImageDimension, OutputImageDimension > )

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

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


Member Data Documentation

template<class TInputImage , class TOutputImage >
const unsigned int itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::InputImageDimension = TInputImage::ImageDimension [static]

Extract dimension from input and output image.

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

Reimplemented in itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >.

Definition at line 45 of file itkVotingBinaryImageFilter.h.

template<class TInputImage , class TOutputImage >
InputPixelType itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::m_BackgroundValue [private]

Definition at line 155 of file itkVotingBinaryImageFilter.h.

template<class TInputImage , class TOutputImage >
unsigned int itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::m_BirthThreshold [private]

Definition at line 157 of file itkVotingBinaryImageFilter.h.

template<class TInputImage , class TOutputImage >
InputPixelType itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::m_ForegroundValue [private]

Definition at line 154 of file itkVotingBinaryImageFilter.h.

template<class TInputImage , class TOutputImage >
InputSizeType itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::m_Radius [private]

Definition at line 152 of file itkVotingBinaryImageFilter.h.

template<class TInputImage , class TOutputImage >
unsigned int itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::m_SurvivalThreshold [private]

Definition at line 158 of file itkVotingBinaryImageFilter.h.

template<class TInputImage , class TOutputImage >
const unsigned int itk::VotingBinaryImageFilter< TInputImage, TOutputImage >::OutputImageDimension = TOutputImage::ImageDimension [static]

Extract dimension from input and output image.

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

Reimplemented in itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >.

Definition at line 47 of file itkVotingBinaryImageFilter.h.


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