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

#include <itkVotingBinaryHoleFillingImageFilter.h>

+ Inheritance diagram for itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >:
+ Collaboration diagram for itk::VotingBinaryHoleFillingImageFilter< 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
VotingBinaryHoleFillingImageFilter 
Self
typedef
InputImageType::SizeValueType 
SizeValueType
typedef
VotingBinaryImageFilter
< InputImageType,
OutputImageType
Superclass

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual const char * GetNameOfClass () const
virtual const SizeValueTypeGetNumberOfPixelsChanged ()
 typedef (Concept::Convertible< int, InputPixelType >) IntConvertibleToInputCheck
 typedef (Concept::Convertible< unsigned int, InputPixelType >) UnsignedIntConvertibleToInputCheck
virtual const unsigned int & GetMajorityThreshold ()
virtual void SetMajorityThreshold (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 AfterThreadedGenerateData ()
void BeforeThreadedGenerateData ()
void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
 VotingBinaryHoleFillingImageFilter ()
virtual ~VotingBinaryHoleFillingImageFilter ()
void PrintSelf (std::ostream &os, Indent indent) const
void SetBirthThreshold (const unsigned int value)
void SetSurvivalThreshold (const unsigned int value)

Private Member Functions

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

Private Attributes

Array< SizeValueTypem_Count
unsigned int m_MajorityThreshold
SizeValueType m_NumberOfPixelsChanged

Detailed Description

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

Fills in holes and cavities by applying a voting operation on each pixel.

See also:
Image
VotingBinaryImageFilter
VotingBinaryIterativeHoleFillingImageFilter
Neighborhood
NeighborhoodOperator
NeighborhoodIterator

Definition at line 41 of file itkVotingBinaryHoleFillingImageFilter.h.


Member Typedef Documentation

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

Convenient typedefs for simplifying declarations.

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

Definition at line 53 of file itkVotingBinaryHoleFillingImageFilter.h.

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

Image typedef support.

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

Definition at line 66 of file itkVotingBinaryHoleFillingImageFilter.h.

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

Superclass typedefs.

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

Definition at line 73 of file itkVotingBinaryHoleFillingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef TOutputImage itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::OutputImageType

Some convenient typedefs.

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

Definition at line 54 of file itkVotingBinaryHoleFillingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef OutputImageType::PixelType itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::OutputPixelType
template<class TInputImage , class TOutputImage >
typedef SmartPointer< Self > itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::Pointer
template<class TInputImage , class TOutputImage >
typedef VotingBinaryHoleFillingImageFilter itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::Self

Standard class typedefs.

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

Definition at line 57 of file itkVotingBinaryHoleFillingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef InputImageType::SizeValueType itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::SizeValueType

Definition at line 76 of file itkVotingBinaryHoleFillingImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef VotingBinaryImageFilter< InputImageType, OutputImageType > itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::Superclass

Constructor & Destructor Documentation

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

End concept checking

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

End concept checking

Definition at line 102 of file itkVotingBinaryHoleFillingImageFilter.h.

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

Member Function Documentation

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

If an imaging filter needs to perform processing after all processing threads have completed, the filter can can provide an implementation for AfterThreadedGenerateData(). The execution flow in the default GenerateData() method will be: 1) Allocate the output buffer 2) Call BeforeThreadedGenerateData() 3) Spawn threads, calling ThreadedGenerateData() in each thread. 4) Call AfterThreadedGenerateData() Note that this flow of control is only available if a filter provides a ThreadedGenerateData() method and NOT a GenerateData() method.

Reimplemented from itk::ImageSource< TOutputImage >.

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

Methods to be called before and after the invokation of ThreadedGenerateData().

Reimplemented from itk::ImageSource< TOutputImage >.

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

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

Majority threshold. It is the number of pixels over 50% that will decide whether an OFF pixel will become ON or not. For example, if the neighborhood of a pixel has 124 pixels (excluding itself), the 50% will be 62, and if you set upd a Majority threshold of 5, that means that the filter will require 67 or more neighbor pixels to be ON in order to switch the current OFF pixel to ON. The default value is 1.

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

Run-time type information (and related methods).

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

template<class TInputImage , class TOutputImage >
virtual const SizeValueType& itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::GetNumberOfPixelsChanged ( ) [virtual]

Returns the number of pixels that changed when the filter was executed.

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

Method for creation through the object factory.

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

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

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

End concept checking

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

template<class TInputImage , class TOutputImage >
void itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::SetBirthThreshold ( const unsigned int  value) [inline, protected, virtual]

Make protected the methods SetBirthThreshold() and SetSurvivalThreshold() so users of this filter do not have access to them.

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

Definition at line 109 of file itkVotingBinaryHoleFillingImageFilter.h.

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

Majority threshold. It is the number of pixels over 50% that will decide whether an OFF pixel will become ON or not. For example, if the neighborhood of a pixel has 124 pixels (excluding itself), the 50% will be 62, and if you set upd a Majority threshold of 5, that means that the filter will require 67 or more neighbor pixels to be ON in order to switch the current OFF pixel to ON. The default value is 1.

template<class TInputImage , class TOutputImage >
void itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::SetSurvivalThreshold ( const unsigned int  value) [inline, protected, virtual]

Make protected the methods SetBirthThreshold() and SetSurvivalThreshold() so users of this filter do not have access to them.

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

Definition at line 111 of file itkVotingBinaryHoleFillingImageFilter.h.

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

VotingBinaryHoleFillingImageFilter 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::VotingBinaryImageFilter< TInputImage, TOutputImage >.

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

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

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

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

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


Member Data Documentation

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

Extract dimension from input and output image.

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

Definition at line 47 of file itkVotingBinaryHoleFillingImageFilter.h.

template<class TInputImage , class TOutputImage >
Array< SizeValueType > itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::m_Count [private]

Definition at line 143 of file itkVotingBinaryHoleFillingImageFilter.h.

template<class TInputImage , class TOutputImage >
unsigned int itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::m_MajorityThreshold [private]

Definition at line 138 of file itkVotingBinaryHoleFillingImageFilter.h.

template<class TInputImage , class TOutputImage >
SizeValueType itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::m_NumberOfPixelsChanged [private]

Definition at line 140 of file itkVotingBinaryHoleFillingImageFilter.h.

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

Extract dimension from input and output image.

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

Definition at line 49 of file itkVotingBinaryHoleFillingImageFilter.h.


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