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