ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkBinaryNotImageFilter.h>
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef TImage::PixelType | PixelType |
typedef SmartPointer< Self > | Pointer |
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 |
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++.
This implementation was taken from the Insight Journal paper: http://hdl.handle.net/1926/584 or http://www.insight-journal.org/browse/publication/176
Definition at line 86 of file itkBinaryNotImageFilter.h.
typedef SmartPointer<const Self> itk::BinaryNotImageFilter< TImage >::ConstPointer |
Reimplemented from itk::UnaryFunctorImageFilter< TImage, TImage, Functor::BinaryNot< TImage::PixelType > >.
Definition at line 99 of file itkBinaryNotImageFilter.h.
typedef TImage::PixelType itk::BinaryNotImageFilter< TImage >::PixelType |
Definition at line 106 of file itkBinaryNotImageFilter.h.
typedef SmartPointer<Self> itk::BinaryNotImageFilter< TImage >::Pointer |
Reimplemented from itk::UnaryFunctorImageFilter< TImage, TImage, Functor::BinaryNot< TImage::PixelType > >.
Definition at line 98 of file itkBinaryNotImageFilter.h.
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.
typedef UnaryFunctorImageFilter<TImage, TImage, Functor::BinaryNot< typename TImage::PixelType> > itk::BinaryNotImageFilter< TImage >::Superclass |
Reimplemented from itk::UnaryFunctorImageFilter< TImage, TImage, Functor::BinaryNot< TImage::PixelType > >.
Definition at line 97 of file itkBinaryNotImageFilter.h.
itk::BinaryNotImageFilter< TImage >::BinaryNotImageFilter | ( | ) | [inline, protected] |
Definition at line 126 of file itkBinaryNotImageFilter.h.
virtual itk::BinaryNotImageFilter< TImage >::~BinaryNotImageFilter | ( | ) | [inline, protected, virtual] |
Definition at line 131 of file itkBinaryNotImageFilter.h.
itk::BinaryNotImageFilter< TImage >::BinaryNotImageFilter | ( | const Self & | ) | [private] |
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 > >.
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.
Reimplemented from itk::ImageSource< TImage >.
Definition at line 149 of file itkBinaryNotImageFilter.h.
virtual PixelType itk::BinaryNotImageFilter< TImage >::GetBackgroundValue | ( | ) | const [virtual] |
Get the value used as "background". Defaults to NumericTraits<PixelType>::NonpositiveMin().
virtual PixelType itk::BinaryNotImageFilter< TImage >::GetForegroundValue | ( | ) | const [virtual] |
Set/Get the value in the image considered as "foreground". Defaults to maximum value of PixelType.
virtual const char* itk::BinaryNotImageFilter< TImage >::GetNameOfClass | ( | ) | const [virtual] |
Runtime information support.
Reimplemented from itk::UnaryFunctorImageFilter< TImage, TImage, Functor::BinaryNot< TImage::PixelType > >.
static Pointer itk::BinaryNotImageFilter< TImage >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::UnaryFunctorImageFilter< TImage, TImage, Functor::BinaryNot< TImage::PixelType > >.
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 > >.
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.
virtual void itk::BinaryNotImageFilter< TImage >::SetBackgroundValue | ( | PixelType | _arg | ) | [virtual] |
Set the value used as "background". Defaults to NumericTraits<PixelType>::NonpositiveMin().
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.
PixelType itk::BinaryNotImageFilter< TImage >::m_BackgroundValue [private] |
Definition at line 161 of file itkBinaryNotImageFilter.h.
PixelType itk::BinaryNotImageFilter< TImage >::m_ForegroundValue [private] |
Definition at line 160 of file itkBinaryNotImageFilter.h.