18 #ifndef itkTernaryOperatorImageFilter_h 19 #define itkTernaryOperatorImageFilter_h 32 template<
typename TInput1,
typename TInput2,
typename TInput3,
typename TOutput >
46 return !( *
this != other );
51 const TInput3 & C)
const 55 return static_cast<TOutput
>( B );
59 return static_cast<TOutput
>( C );
102 template<
typename TMask,
typename TImage >
106 Functor::TernaryOperator< typename TMask::PixelType,
107 typename TImage::PixelType,
108 typename TImage::PixelType,
109 typename TImage::PixelType > >
115 TMask, TImage, TImage, TImage,
117 typename TImage::PixelType,
118 typename TImage::PixelType,
137 void operator=(
const Self &) ITK_DELETE_FUNCTION;
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
Implements pixel-wise generic operation of three images.
Return argument 2 if argument 1 is false, and argument 3 otherwise.
SmartPointer< const Self > ConstPointer
TernaryOperatorImageFilter Self
Return the value of input 2 if input 1 is false, and that of input 3 otherwise.
SmartPointer< Self > Pointer
bool operator!=(const TernaryOperator &) const
bool operator==(const TernaryOperator &other) const
TernaryFunctorImageFilter< TMask, TImage, TImage, TImage, Functor::TernaryOperator< typename TMask::PixelType, typename TImage::PixelType, typename TImage::PixelType, typename TImage::PixelType > > Superclass
TernaryOperatorImageFilter()
virtual ~TernaryOperatorImageFilter()
TOutput operator()(const TInput1 &A, const TInput2 &B, const TInput3 &C) const