ITK  5.2.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>
67 class TernaryOperatorImageFilter : public TernaryGeneratorImageFilter<TMask, TImage, TImage, TImage>
68 {
69 public:
70  ITK_DISALLOW_COPY_AND_MOVE(TernaryOperatorImageFilter);
71 
75 
78 
79  using FunctorType = Functor::TernaryOperator<typename TMask::PixelType,
80  typename TImage::PixelType,
81  typename TImage::PixelType,
82  typename TImage::PixelType>;
83 
85  itkNewMacro(Self);
86 
89 
90 protected:
92  {
93 #if !defined(ITK_WRAPPING_PARSER)
95 #endif
96  }
97  ~TernaryOperatorImageFilter() override = default;
98 };
99 } // end namespace itk
100 
101 #endif
itk::TernaryOperatorImageFilter::FunctorType
Functor::TernaryOperator< typename TMask::PixelType, typename TImage::PixelType, typename TImage::PixelType, typename TImage::PixelType > FunctorType
Definition: itkTernaryOperatorImageFilter.h:82
itk::TernaryOperatorImageFilter::TernaryOperatorImageFilter
TernaryOperatorImageFilter()
Definition: itkTernaryOperatorImageFilter.h:91
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
itk::SmartPointer< Self >
itk::TernaryOperatorImageFilter::~TernaryOperatorImageFilter
~TernaryOperatorImageFilter() override=default
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::TernaryGeneratorImageFilter
Implements pixel-wise generic operation of three images or images with constants.
Definition: itkTernaryGeneratorImageFilter.h:54
itk::TernaryGeneratorImageFilter< TMask, TImage, TImage, TImage >::SetFunctor
void SetFunctor(const std::function< ConstRefFunctionType > &f)
Definition: itkTernaryGeneratorImageFilter.h:166
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: itkAnnulusOperator.h:24
itkTernaryGeneratorImageFilter.h