ITK
5.0.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 | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = TernaryOperatorImageFilter |
using | Superclass = TernaryFunctorImageFilter< TMask, TImage, TImage, TImage, Functor::TernaryOperator< typename TMask::PixelType, typename TImage::PixelType, typename TImage::PixelType, typename TImage::PixelType > > |
Public Types inherited from itk::TernaryFunctorImageFilter< TMask, TImage, TImage, TImage, Functor::TernaryOperator< TMask::PixelType, TImage::PixelType, TImage::PixelType, TImage::PixelType > > | |
using | ConstPointer = SmartPointer< const Self > |
using | FunctorType = Functor::TernaryOperator< TMask::PixelType, TImage::PixelType, TImage::PixelType, TImage::PixelType > |
using | Input1ImagePixelType = typename Input1ImageType::PixelType |
using | Input1ImagePointer = typename Input1ImageType::ConstPointer |
using | Input1ImageRegionType = typename Input1ImageType::RegionType |
using | Input1ImageType = TMask |
using | Input2ImagePixelType = typename Input2ImageType::PixelType |
using | Input2ImagePointer = typename Input2ImageType::ConstPointer |
using | Input2ImageRegionType = typename Input2ImageType::RegionType |
using | Input2ImageType = TImage |
using | Input3ImagePixelType = typename Input3ImageType::PixelType |
using | Input3ImagePointer = typename Input3ImageType::ConstPointer |
using | Input3ImageRegionType = typename Input3ImageType::RegionType |
using | Input3ImageType = TImage |
using | OutputImagePixelType = typename OutputImageType::PixelType |
using | OutputImagePointer = typename OutputImageType::Pointer |
using | OutputImageRegionType = typename OutputImageType::RegionType |
using | OutputImageType = TImage |
using | Pointer = SmartPointer< Self > |
using | Self = TernaryFunctorImageFilter |
using | Superclass = InPlaceImageFilter< TMask, TImage > |
Public Types inherited from itk::InPlaceImageFilter< TMask, TImage > | |
using | ConstPointer = SmartPointer< const Self > |
using | InputImageConstPointer = typename InputImageType::ConstPointer |
using | InputImagePixelType = typename InputImageType::PixelType |
using | InputImagePointer = typename InputImageType::Pointer |
using | InputImageRegionType = typename InputImageType::RegionType |
using | InputImageType = TMask |
using | OutputImagePixelType = typename Superclass::OutputImagePixelType |
using | OutputImagePointer = typename Superclass::OutputImagePointer |
using | OutputImageRegionType = typename Superclass::OutputImageRegionType |
using | OutputImageType = typename Superclass::OutputImageType |
using | Pointer = SmartPointer< Self > |
using | Self = InPlaceImageFilter |
using | Superclass = ImageToImageFilter< TMask, TImage > |
Public Types inherited from itk::ImageToImageFilter< TMask, TImage > | |
using | ConstPointer = SmartPointer< const Self > |
using | InputImageConstPointer = typename InputImageType::ConstPointer |
using | InputImagePixelType = typename InputImageType::PixelType |
using | InputImagePointer = typename InputImageType::Pointer |
using | InputImageRegionType = typename InputImageType::RegionType |
using | InputImageType = TMask |
using | OutputImagePixelType = typename Superclass::OutputImagePixelType |
using | OutputImageRegionType = typename Superclass::OutputImageRegionType |
using | Pointer = SmartPointer< Self > |
using | Self = ImageToImageFilter |
using | Superclass = ImageSource< TImage > |
Public Types inherited from itk::ImageSource< TImage > | |
using | ConstPointer = SmartPointer< const Self > |
using | DataObjectIdentifierType = Superclass::DataObjectIdentifierType |
using | DataObjectPointer = DataObject::Pointer |
using | DataObjectPointerArraySizeType = Superclass::DataObjectPointerArraySizeType |
using | OutputImagePixelType = typename OutputImageType::PixelType |
using | OutputImagePointer = typename OutputImageType::Pointer |
using | OutputImageRegionType = typename OutputImageType::RegionType |
using | OutputImageType = TImage |
using | Pointer = SmartPointer< Self > |
using | Self = ImageSource |
using | Superclass = ProcessObject |
Public Types inherited from itk::ProcessObject | |
using | ConstPointer = SmartPointer< const Self > |
using | DataObjectIdentifierType = DataObject::DataObjectIdentifierType |
using | DataObjectPointer = DataObject::Pointer |
using | DataObjectPointerArray = std::vector< DataObjectPointer > |
using | DataObjectPointerArraySizeType = DataObjectPointerArray::size_type |
using | MultiThreaderType = MultiThreaderBase |
using | NameArray = std::vector< DataObjectIdentifierType > |
using | Pointer = SmartPointer< Self > |
using | Self = ProcessObject |
using | Superclass = Object |
Public Types inherited from itk::Object | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = Object |
using | Superclass = LightObject |
Public Types inherited from itk::LightObject | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = LightObject |
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 () |
using itk::TernaryOperatorImageFilter< TMask, TImage >::ConstPointer = SmartPointer< const Self > |
Definition at line 87 of file itkTernaryOperatorImageFilter.h.
using itk::TernaryOperatorImageFilter< TMask, TImage >::Pointer = SmartPointer< Self > |
Definition at line 86 of file itkTernaryOperatorImageFilter.h.
using itk::TernaryOperatorImageFilter< TMask, TImage >::Self = TernaryOperatorImageFilter |
Standard class type aliases.
Definition at line 78 of file itkTernaryOperatorImageFilter.h.
using itk::TernaryOperatorImageFilter< TMask, TImage >::Superclass = TernaryFunctorImageFilter< TMask, TImage, TImage, TImage, Functor::TernaryOperator< typename TMask::PixelType, typename TImage::PixelType, typename TImage::PixelType, typename TImage::PixelType > > |
Definition at line 84 of file itkTernaryOperatorImageFilter.h.
|
protecteddefault |
|
overrideprotecteddefault |
|
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.