ITK
4.13.0
Insight Segmentation and Registration Toolkit
|
#include <itkTernaryOperatorImageFilter.h>
Return the value of input 2 if input 1 is false, and that of input 3 otherwise.
This class is templated over the mask type and image type. Inputs two and three and the output image are all templated over the same type. If the value of Input1 evaluates to true, the value of Input2 is taken; otherwise, the value of Input3 is taken. This is equivalent to applying the ternary operator pixelwise across the three images:
Output = Input1 ? Input2 : Input3
As an example of where this filter could be useful, consider the case where you have the following images:
A new image with the foreground object placed on the background can be obtained as follows:
Definition at line 66 of file itkTernaryOperatorImageFilter.h.
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef TernaryOperatorImageFilter | Self |
typedef TernaryFunctorImageFilter < TMask, TImage, TImage, TImage, Functor::TernaryOperator < typename TMask::PixelType, typename TImage::PixelType, typename TImage::PixelType, typename TImage::PixelType > > | Superclass |
Public Types inherited from itk::TernaryFunctorImageFilter< TMask, TImage, TImage, TImage, Functor::TernaryOperator< TMask::PixelType, TImage::PixelType, TImage::PixelType, TImage::PixelType > > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Functor::TernaryOperator < TMask::PixelType, TImage::PixelType, TImage::PixelType, TImage::PixelType > | FunctorType |
typedef Input1ImageType::PixelType | Input1ImagePixelType |
typedef Input1ImageType::ConstPointer | Input1ImagePointer |
typedef Input1ImageType::RegionType | Input1ImageRegionType |
typedef TMask | Input1ImageType |
typedef Input2ImageType::PixelType | Input2ImagePixelType |
typedef Input2ImageType::ConstPointer | Input2ImagePointer |
typedef Input2ImageType::RegionType | Input2ImageRegionType |
typedef TImage | Input2ImageType |
typedef Input3ImageType::PixelType | Input3ImagePixelType |
typedef Input3ImageType::ConstPointer | Input3ImagePointer |
typedef Input3ImageType::RegionType | Input3ImageRegionType |
typedef TImage | Input3ImageType |
typedef OutputImageType::PixelType | OutputImagePixelType |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef TImage | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef TernaryFunctorImageFilter | Self |
typedef InPlaceImageFilter < TMask, TImage > | Superclass |
Public Types inherited from itk::InPlaceImageFilter< TMask, TImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TMask | 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 < TMask, TImage > | Superclass |
Public Types inherited from itk::ImageToImageFilter< TMask, TImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TMask | 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::TernaryFunctorImageFilter< TMask, TImage, TImage, TImage, Functor::TernaryOperator< TMask::PixelType, TImage::PixelType, TImage::PixelType, 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 () |
typedef SmartPointer< const Self > itk::TernaryOperatorImageFilter< TMask, TImage >::ConstPointer |
Definition at line 85 of file itkTernaryOperatorImageFilter.h.
typedef SmartPointer< Self > itk::TernaryOperatorImageFilter< TMask, TImage >::Pointer |
Definition at line 84 of file itkTernaryOperatorImageFilter.h.
typedef TernaryOperatorImageFilter itk::TernaryOperatorImageFilter< TMask, TImage >::Self |
Standard class typedefs.
Definition at line 76 of file itkTernaryOperatorImageFilter.h.
typedef TernaryFunctorImageFilter< TMask, TImage, TImage, TImage, Functor::TernaryOperator< typename TMask::PixelType, typename TImage::PixelType, typename TImage::PixelType, typename TImage::PixelType > > itk::TernaryOperatorImageFilter< TMask, TImage >::Superclass |
Definition at line 82 of file itkTernaryOperatorImageFilter.h.
|
inlineprotected |
Definition at line 95 of file itkTernaryOperatorImageFilter.h.
|
inlineoverrideprotectedvirtual |
Definition at line 96 of file itkTernaryOperatorImageFilter.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.
|
virtual |
Runtime information support.
Reimplemented from itk::TernaryFunctorImageFilter< TMask, TImage, TImage, TImage, Functor::TernaryOperator< TMask::PixelType, TImage::PixelType, TImage::PixelType, TImage::PixelType > >.
|
static |
Method for creation through the object factory.