ITK
4.13.0
Insight Segmentation and Registration Toolkit
|
#include <itkBinaryNotImageFilter.h>
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: https://hdl.handle.net/1926/584 or http://www.insight-journal.org/browse/publication/176
Definition at line 86 of file 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 Types inherited from itk::UnaryFunctorImageFilter< TImage, TImage, Functor::BinaryNot< TImage::PixelType > > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Functor::BinaryNot < TImage::PixelType > | FunctorType |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::ConstPointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TImage | InputImageType |
typedef OutputImageType::PixelType | OutputImagePixelType |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef TImage | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef UnaryFunctorImageFilter | Self |
typedef InPlaceImageFilter < TImage, TImage > | Superclass |
Public Types inherited from itk::InPlaceImageFilter< TImage, TImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TImage | InputImageType |
typedef Superclass::OutputImagePixelType | OutputImagePixelType |
typedef Superclass::OutputImagePointer | OutputImagePointer |
typedef Superclass::OutputImageRegionType | OutputImageRegionType |
typedef Superclass::OutputImageType | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef InPlaceImageFilter | Self |
typedef ImageToImageFilter < TImage, TImage > | Superclass |
Public Types inherited from itk::ImageToImageFilter< TImage, TImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TImage | InputImageType |
typedef Superclass::OutputImagePixelType | OutputImagePixelType |
typedef Superclass::OutputImageRegionType | OutputImageRegionType |
typedef SmartPointer< Self > | Pointer |
typedef ImageToImageFilter | Self |
typedef ImageSource< TImage > | Superclass |
Public Types inherited from itk::ImageSource< TImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef Superclass::DataObjectPointerArraySizeType | DataObjectPointerArraySizeType |
typedef OutputImageType::PixelType | OutputImagePixelType |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef TImage | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef ImageSource | Self |
typedef ProcessObject | Superclass |
Public Types inherited from itk::ProcessObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef DataObject::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef std::vector < DataObjectPointer > | DataObjectPointerArray |
typedef DataObjectPointerArray::size_type | DataObjectPointerArraySizeType |
typedef MultiThreader | MultiThreaderType |
typedef std::vector < DataObjectIdentifierType > | NameArray |
typedef SmartPointer< Self > | Pointer |
typedef ProcessObject | Self |
typedef Object | Superclass |
Public Types inherited from itk::Object | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef Object | Self |
typedef LightObject | Superclass |
Public Types inherited from itk::LightObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | Self |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::UnaryFunctorImageFilter< TImage, TImage, Functor::BinaryNot< TImage::PixelType > > | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Private Attributes | |
PixelType | m_BackgroundValue |
PixelType | m_ForegroundValue |
typedef SmartPointer<const Self> itk::BinaryNotImageFilter< TImage >::ConstPointer |
Definition at line 95 of file itkBinaryNotImageFilter.h.
typedef TImage::PixelType itk::BinaryNotImageFilter< TImage >::PixelType |
Definition at line 102 of file itkBinaryNotImageFilter.h.
typedef SmartPointer<Self> itk::BinaryNotImageFilter< TImage >::Pointer |
Definition at line 94 of file itkBinaryNotImageFilter.h.
typedef BinaryNotImageFilter itk::BinaryNotImageFilter< TImage >::Self |
Standard class typedefs.
Definition at line 91 of file itkBinaryNotImageFilter.h.
typedef UnaryFunctorImageFilter<TImage, TImage, Functor::BinaryNot< typename TImage::PixelType> > itk::BinaryNotImageFilter< TImage >::Superclass |
Definition at line 93 of file itkBinaryNotImageFilter.h.
|
inlineprotected |
Definition at line 121 of file itkBinaryNotImageFilter.h.
References itk::BinaryNotImageFilter< TImage >::m_BackgroundValue, itk::BinaryNotImageFilter< TImage >::m_ForegroundValue, itk::NumericTraits< T >::max(), and itk::NumericTraits< T >::NonpositiveMin().
|
inlineoverrideprotectedvirtual |
Definition at line 126 of file itkBinaryNotImageFilter.h.
|
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.
|
inlineoverrideprotectedvirtual |
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 144 of file itkBinaryNotImageFilter.h.
References itk::ImageSource< TOutputImage >::GenerateData(), itk::UnaryFunctorImageFilter< TImage, TImage, Functor::BinaryNot< TImage::PixelType > >::GetFunctor(), itk::Functor::BinaryNot< TPixel >::m_BackgroundValue, itk::BinaryNotImageFilter< TImage >::m_BackgroundValue, itk::Functor::BinaryNot< TPixel >::m_ForegroundValue, and itk::BinaryNotImageFilter< TImage >::m_ForegroundValue.
|
virtual |
Get the value used as "background". Defaults to NumericTraits<PixelType>::NonpositiveMin().
|
virtual |
Set/Get the value in the image considered as "foreground". Defaults to maximum value of PixelType.
|
virtual |
Runtime information support.
Reimplemented from itk::UnaryFunctorImageFilter< TImage, TImage, Functor::BinaryNot< TImage::PixelType > >.
|
static |
Method for creation through the object factory.
|
inlineoverrideprotectedvirtual |
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 128 of file itkBinaryNotImageFilter.h.
References itk::BinaryNotImageFilter< TImage >::m_BackgroundValue, itk::BinaryNotImageFilter< TImage >::m_ForegroundValue, and itk::InPlaceImageFilter< TInputImage, TOutputImage >::PrintSelf().
|
virtual |
Set the value used as "background". Defaults to NumericTraits<PixelType>::NonpositiveMin().
|
virtual |
Set/Get the value in the image considered as "foreground". Defaults to maximum value of PixelType.
|
private |
Definition at line 155 of file itkBinaryNotImageFilter.h.
Referenced by itk::BinaryNotImageFilter< TImage >::BinaryNotImageFilter(), itk::BinaryNotImageFilter< TImage >::GenerateData(), and itk::BinaryNotImageFilter< TImage >::PrintSelf().
|
private |
Definition at line 152 of file itkBinaryNotImageFilter.h.
Referenced by itk::BinaryNotImageFilter< TImage >::BinaryNotImageFilter(), itk::BinaryNotImageFilter< TImage >::GenerateData(), and itk::BinaryNotImageFilter< TImage >::PrintSelf().