ITK  5.1.0
Insight Toolkit
itkTernaryOperatorImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkTernaryOperatorImageFilter_h
19 #define itkTernaryOperatorImageFilter_h
20 
22 #include "itkLogicOpsFunctors.h"
23 
24 namespace itk
25 {
26 
66 template <typename TMask, typename TImage>
68  : public TernaryFunctorImageFilter<TMask,
69  TImage,
70  TImage,
71  TImage,
72  Functor::TernaryOperator<typename TMask::PixelType,
73  typename TImage::PixelType,
74  typename TImage::PixelType,
75  typename TImage::PixelType>>
76 {
77 public:
78  ITK_DISALLOW_COPY_AND_ASSIGN(TernaryOperatorImageFilter);
79 
83  TImage,
84  TImage,
85  TImage,
86  Functor::TernaryOperator<typename TMask::PixelType,
87  typename TImage::PixelType,
88  typename TImage::PixelType,
89  typename TImage::PixelType>>;
90 
93 
95  itkNewMacro(Self);
96 
99 
100 protected:
101  TernaryOperatorImageFilter() = default;
102  ~TernaryOperatorImageFilter() override = default;
103 };
104 } // end namespace itk
105 
106 #endif
itkLogicOpsFunctors.h
itk::TernaryOperatorImageFilter
Return the value of input 2 if input 1 is false, and that of input 3 otherwise.
Definition: itkTernaryOperatorImageFilter.h:67
itkTernaryFunctorImageFilter.h
itk::SmartPointer< Self >
itk::TernaryOperatorImageFilter::~TernaryOperatorImageFilter
~TernaryOperatorImageFilter() override=default
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::TernaryOperatorImageFilter::TernaryOperatorImageFilter
TernaryOperatorImageFilter()=default
itk::TernaryFunctorImageFilter
Implements pixel-wise generic operation of three images.
Definition: itkTernaryFunctorImageFilter.h:43
itk::Functor::TernaryOperator
Return argument 2 if argument 1 is false, and argument 3 otherwise.
Definition: itkLogicOpsFunctors.h:387
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkArray.h:26