ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkVotingBinaryHoleFillingImageFilter.h>
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
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< Self > | Pointer |
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 SizeValueType & | GetNumberOfPixelsChanged () |
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< SizeValueType > | m_Count |
unsigned int | m_MajorityThreshold |
SizeValueType | m_NumberOfPixelsChanged |
Fills in holes and cavities by applying a voting operation on each pixel.
Definition at line 41 of file itkVotingBinaryHoleFillingImageFilter.h.
typedef SmartPointer< const Self > itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::ConstPointer |
Reimplemented from itk::VotingBinaryImageFilter< TInputImage, TOutputImage >.
Definition at line 60 of file itkVotingBinaryHoleFillingImageFilter.h.
typedef InputImageType::RegionType itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::InputImageRegionType |
Reimplemented from itk::VotingBinaryImageFilter< TInputImage, TOutputImage >.
Definition at line 72 of file itkVotingBinaryHoleFillingImageFilter.h.
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.
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.
typedef InputImageType::SizeType itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::InputSizeType |
Reimplemented from itk::VotingBinaryImageFilter< TInputImage, TOutputImage >.
Definition at line 75 of file itkVotingBinaryHoleFillingImageFilter.h.
typedef OutputImageType::RegionType itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::OutputImageRegionType |
Superclass typedefs.
Reimplemented from itk::VotingBinaryImageFilter< TInputImage, TOutputImage >.
Definition at line 73 of file itkVotingBinaryHoleFillingImageFilter.h.
typedef TOutputImage itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::OutputImageType |
Some convenient typedefs.
Reimplemented from itk::VotingBinaryImageFilter< TInputImage, TOutputImage >.
Definition at line 54 of file itkVotingBinaryHoleFillingImageFilter.h.
typedef OutputImageType::PixelType itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::OutputPixelType |
Reimplemented from itk::VotingBinaryImageFilter< TInputImage, TOutputImage >.
Definition at line 70 of file itkVotingBinaryHoleFillingImageFilter.h.
typedef SmartPointer< Self > itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::Pointer |
Reimplemented from itk::VotingBinaryImageFilter< TInputImage, TOutputImage >.
Definition at line 59 of file itkVotingBinaryHoleFillingImageFilter.h.
typedef VotingBinaryHoleFillingImageFilter itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::Self |
Standard class typedefs.
Reimplemented from itk::VotingBinaryImageFilter< TInputImage, TOutputImage >.
Definition at line 57 of file itkVotingBinaryHoleFillingImageFilter.h.
typedef InputImageType::SizeValueType itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::SizeValueType |
Definition at line 76 of file itkVotingBinaryHoleFillingImageFilter.h.
typedef VotingBinaryImageFilter< InputImageType, OutputImageType > itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::Superclass |
Reimplemented from itk::VotingBinaryImageFilter< TInputImage, TOutputImage >.
Definition at line 58 of file itkVotingBinaryHoleFillingImageFilter.h.
itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::VotingBinaryHoleFillingImageFilter | ( | ) | [protected] |
End concept checking
virtual itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::~VotingBinaryHoleFillingImageFilter | ( | ) | [inline, protected, virtual] |
End concept checking
Definition at line 102 of file itkVotingBinaryHoleFillingImageFilter.h.
itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::VotingBinaryHoleFillingImageFilter | ( | const Self & | ) | [private] |
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 >.
void itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::BeforeThreadedGenerateData | ( | ) | [protected, virtual] |
Methods to be called before and after the invokation of ThreadedGenerateData().
Reimplemented from itk::ImageSource< 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 >.
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.
virtual const char* itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::VotingBinaryImageFilter< TInputImage, TOutputImage >.
virtual const SizeValueType& itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::GetNumberOfPixelsChanged | ( | ) | [virtual] |
Returns the number of pixels that changed when the filter was executed.
static Pointer itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::VotingBinaryImageFilter< TInputImage, 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 >.
void itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
End concept checking
Reimplemented from itk::VotingBinaryImageFilter< TInputImage, 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.
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.
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.
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"
Reimplemented from itk::VotingBinaryImageFilter< TInputImage, 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 >.
itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::typedef | ( | Concept::Convertible< unsigned int, InputPixelType > | ) |
This class requires UnsignedIntConvertibleToInputCheck in the form of ( Concept::Convertible< unsigned int, InputPixelType > )
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.
Array< SizeValueType > itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::m_Count [private] |
Definition at line 143 of file itkVotingBinaryHoleFillingImageFilter.h.
unsigned int itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::m_MajorityThreshold [private] |
Definition at line 138 of file itkVotingBinaryHoleFillingImageFilter.h.
SizeValueType itk::VotingBinaryHoleFillingImageFilter< TInputImage, TOutputImage >::m_NumberOfPixelsChanged [private] |
Definition at line 140 of file itkVotingBinaryHoleFillingImageFilter.h.
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.