ITK  5.1.0
Insight Toolkit
itkTernaryAddImageFilter.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 itkTernaryAddImageFilter_h
19 #define itkTernaryAddImageFilter_h
20 
23 
24 namespace itk
25 {
26 
38 template <typename TInputImage1, typename TInputImage2, typename TInputImage3, typename TOutputImage>
40  : public TernaryFunctorImageFilter<TInputImage1,
41  TInputImage2,
42  TInputImage3,
43  TOutputImage,
44  Functor::Add3<typename TInputImage1::PixelType,
45  typename TInputImage2::PixelType,
46  typename TInputImage3::PixelType,
47  typename TOutputImage::PixelType>>
48 {
49 public:
50  ITK_DISALLOW_COPY_AND_ASSIGN(TernaryAddImageFilter);
51 
54  using Superclass = TernaryFunctorImageFilter<TInputImage1,
55  TInputImage2,
56  TInputImage3,
57  TOutputImage,
58  Functor::Add3<typename TInputImage1::PixelType,
59  typename TInputImage2::PixelType,
60  typename TInputImage3::PixelType,
61  typename TOutputImage::PixelType>>;
62 
65 
67  itkNewMacro(Self);
68 
71 
72 protected:
73  TernaryAddImageFilter() = default;
74  virtual ~TernaryAddImageFilter() = default;
75 };
76 } // end namespace itk
77 
78 #endif
itk::TernaryAddImageFilter::TernaryAddImageFilter
TernaryAddImageFilter()=default
itk::TernaryAddImageFilter::~TernaryAddImageFilter
virtual ~TernaryAddImageFilter()=default
itkTernaryFunctorImageFilter.h
itk::Functor::Add3
Definition: itkArithmeticOpsFunctors.h:66
itk::SmartPointer< Self >
itk::TernaryAddImageFilter
Pixel-wise addition of three images.
Definition: itkTernaryAddImageFilter.h:39
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itkArithmeticOpsFunctors.h
itk::TernaryFunctorImageFilter
Implements pixel-wise generic operation of three images.
Definition: itkTernaryFunctorImageFilter.h:43
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkArray.h:26
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:138