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::BinaryNotImageFilter< TImage > Class Template Reference

#include <itkBinaryNotImageFilter.h>

+ Inheritance diagram for itk::BinaryNotImageFilter< TImage >:
+ Collaboration diagram for itk::BinaryNotImageFilter< TImage >:

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef TImage::PixelType PixelType
typedef SmartPointer< SelfPointer
typedef BinaryNotImageFilter Self
typedef
UnaryFunctorImageFilter
< TImage, TImage,
Functor::BinaryNot< typename
TImage::PixelType > > 
Superclass

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual PixelType GetBackgroundValue () const
virtual const char * GetNameOfClass () const
virtual void SetBackgroundValue (PixelType _arg)
virtual void SetForegroundValue (PixelType _arg)
virtual PixelType GetForegroundValue () const

Static Public Member Functions

static Pointer New ()

Protected Member Functions

 BinaryNotImageFilter ()
void GenerateData ()
void PrintSelf (std::ostream &os, Indent indent) const
virtual ~BinaryNotImageFilter ()

Private Member Functions

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

Private Attributes

PixelType m_BackgroundValue
PixelType m_ForegroundValue

Detailed Description

template<class TImage>
class itk::BinaryNotImageFilter< TImage >

Implements the BinaryNot logical operator pixel-wise between two images.

This class is parametrized over the types of the two input images and the type of the output image. Numeric conversions (castings) are done by the C++ defaults.

The total operation over one pixel will be

output_pixel = static_cast<PixelType>( input1_pixel != input2_pixel )

Where "!=" is the equality operator in C++.

Author:
Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA de Jouy-en-Josas, France.

This implementation was taken from the Insight Journal paper: http://hdl.handle.net/1926/584 or http://www.insight-journal.org/browse/publication/176

Wiki Examples:

Definition at line 86 of file itkBinaryNotImageFilter.h.


Member Typedef Documentation

template<class TImage >
typedef SmartPointer<const Self> itk::BinaryNotImageFilter< TImage >::ConstPointer
template<class TImage >
typedef TImage::PixelType itk::BinaryNotImageFilter< TImage >::PixelType

Definition at line 106 of file itkBinaryNotImageFilter.h.

template<class TImage >
typedef SmartPointer<Self> itk::BinaryNotImageFilter< TImage >::Pointer
template<class TImage >
typedef BinaryNotImageFilter itk::BinaryNotImageFilter< TImage >::Self

Standard class typedefs.

Reimplemented from itk::UnaryFunctorImageFilter< TImage, TImage, Functor::BinaryNot< TImage::PixelType > >.

Definition at line 95 of file itkBinaryNotImageFilter.h.

template<class TImage >
typedef UnaryFunctorImageFilter<TImage, TImage, Functor::BinaryNot< typename TImage::PixelType> > itk::BinaryNotImageFilter< TImage >::Superclass

Constructor & Destructor Documentation

template<class TImage >
itk::BinaryNotImageFilter< TImage >::BinaryNotImageFilter ( ) [inline, protected]

Definition at line 126 of file itkBinaryNotImageFilter.h.

template<class TImage >
virtual itk::BinaryNotImageFilter< TImage >::~BinaryNotImageFilter ( ) [inline, protected, virtual]

Definition at line 131 of file itkBinaryNotImageFilter.h.

template<class TImage >
itk::BinaryNotImageFilter< TImage >::BinaryNotImageFilter ( const Self ) [private]

Member Function Documentation

template<class TImage >
virtual::itk::LightObject::Pointer itk::BinaryNotImageFilter< TImage >::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::UnaryFunctorImageFilter< TImage, TImage, Functor::BinaryNot< TImage::PixelType > >.

template<class TImage >
void itk::BinaryNotImageFilter< TImage >::GenerateData ( void  ) [inline, protected, virtual]

A version of GenerateData() specific for image processing filters. This implementation will split the processing across multiple threads. The buffer is allocated by this method. Then the BeforeThreadedGenerateData() method is called (if provided). Then, a series of threads are spawned each calling ThreadedGenerateData(). After all the threads have completed processing, the AfterThreadedGenerateData() method is called (if provided). If an image processing filter cannot be threaded, the filter should provide an implementation of GenerateData(). That implementation is responsible for allocating the output buffer. If a filter an be threaded, it should NOT provide a GenerateData() method but should provide a ThreadedGenerateData() instead.

See also:
ThreadedGenerateData()

Reimplemented from itk::ImageSource< TImage >.

Definition at line 149 of file itkBinaryNotImageFilter.h.

template<class TImage >
virtual PixelType itk::BinaryNotImageFilter< TImage >::GetBackgroundValue ( ) const [virtual]

Get the value used as "background". Defaults to NumericTraits<PixelType>::NonpositiveMin().

template<class TImage >
virtual PixelType itk::BinaryNotImageFilter< TImage >::GetForegroundValue ( ) const [virtual]

Set/Get the value in the image considered as "foreground". Defaults to maximum value of PixelType.

template<class TImage >
virtual const char* itk::BinaryNotImageFilter< TImage >::GetNameOfClass ( ) const [virtual]
template<class TImage >
static Pointer itk::BinaryNotImageFilter< TImage >::New ( ) [static]

Method for creation through the object factory.

Reimplemented from itk::UnaryFunctorImageFilter< TImage, TImage, Functor::BinaryNot< TImage::PixelType > >.

template<class TImage >
void itk::BinaryNotImageFilter< TImage >::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::UnaryFunctorImageFilter< TImage, TImage, Functor::BinaryNot< TImage::PixelType > >.

template<class TImage >
void itk::BinaryNotImageFilter< TImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [inline, 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::InPlaceImageFilter< TImage, TImage >.

Definition at line 133 of file itkBinaryNotImageFilter.h.

template<class TImage >
virtual void itk::BinaryNotImageFilter< TImage >::SetBackgroundValue ( PixelType  _arg) [virtual]

Set the value used as "background". Defaults to NumericTraits<PixelType>::NonpositiveMin().

template<class TImage >
virtual void itk::BinaryNotImageFilter< TImage >::SetForegroundValue ( PixelType  _arg) [virtual]

Set/Get the value in the image considered as "foreground". Defaults to maximum value of PixelType.


Member Data Documentation

template<class TImage >
PixelType itk::BinaryNotImageFilter< TImage >::m_BackgroundValue [private]

Definition at line 161 of file itkBinaryNotImageFilter.h.

template<class TImage >
PixelType itk::BinaryNotImageFilter< TImage >::m_ForegroundValue [private]

Definition at line 160 of file itkBinaryNotImageFilter.h.


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