ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkTernaryOperatorImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 
65 template< typename TMask, typename TImage >
67  public
68  TernaryFunctorImageFilter< TMask, TImage, TImage, TImage,
69  Functor::TernaryOperator< typename TMask::PixelType,
70  typename TImage::PixelType,
71  typename TImage::PixelType,
72  typename TImage::PixelType > >
73 {
74 public:
78  TMask, TImage, TImage, TImage,
79  Functor::TernaryOperator< typename TMask::PixelType,
80  typename TImage::PixelType,
81  typename TImage::PixelType,
82  typename TImage::PixelType > > Superclass;
83 
86 
88  itkNewMacro(Self);
89 
91  itkTypeMacro(TernaryOperatorImageFilter,
93 
94 protected:
96  virtual ~TernaryOperatorImageFilter() ITK_OVERRIDE {}
97 
98 private:
99  ITK_DISALLOW_COPY_AND_ASSIGN(TernaryOperatorImageFilter);
100 };
101 } // end namespace itk
102 
103 #endif
Light weight base class for most itk classes.
Implements pixel-wise generic operation of three images.
Return argument 2 if argument 1 is false, and argument 3 otherwise.
Return the value of input 2 if input 1 is false, and that of input 3 otherwise.
TernaryFunctorImageFilter< TMask, TImage, TImage, TImage, Functor::TernaryOperator< typename TMask::PixelType, typename TImage::PixelType, typename TImage::PixelType, typename TImage::PixelType > > Superclass