SimpleITK  2.0.0
sitkAddImageFilter.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 sitkAddImageFilter_h
19 #define sitkAddImageFilter_h
20 
21 /*
22  * WARNING: DO NOT EDIT THIS FILE!
23  * THIS FILE IS AUTOMATICALLY GENERATED BY THE SIMPLEITK BUILD PROCESS.
24  * Please look at sitkBinaryFunctorFilterTemplate.h.in to make changes.
25  */
26 
27 #include <memory>
28 
29 #include "sitkBasicFilters.h"
30 #include "sitkImageFilter.h"
31 
32 namespace itk {
33  namespace simple {
34 
79  public:
81 
83  virtual ~AddImageFilter();
84 
88 
91 
92 
93 
95  std::string GetName() const { return std::string ("AddImageFilter"); }
96 
98  std::string ToString() const;
99 
100 
102 #ifndef SWIG
103  Image Execute ( Image&& image1, const Image& image2 );
104 #endif
105  Image Execute ( const Image& image1, const Image& image2 );
106 
108  Image Execute ( const Image& image1, double constant );
109 #ifndef SWIG
110  Image Execute ( Image&& image1, double constant );
111 #endif
112  Image Execute ( double constant, const Image& image2 );
113 
114 
115  private:
116 
119  using MemberFunctionType = Image (Self::*)( const Image& image1, const Image& image2 );
120  template <class TImageType> Image ExecuteInternal ( const Image& image1, const Image& image2 );
121 
122 
124 
125  std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
126  using MemberFunction1Type = Image (Self::*)( double constant, const Image& image2 );
127  template <class TImageType> Image ExecuteInternal ( double constant, const Image& image2 );
129  std::unique_ptr<detail::MemberFunctionFactory<MemberFunction1Type> > m_MemberFactory1;
130 
131  using MemberFunction2Type = Image (Self::*)( const Image& image1, double constant );
132  template <class TImageType> Image ExecuteInternal ( const Image& image1, double constant );
134  std::unique_ptr<detail::MemberFunctionFactory<MemberFunction2Type> > m_MemberFactory2;
135 
136 
137 
138  bool m_InPlace{false};
139  };
140 
150 #ifndef SWIG
151  SITKBasicFilters_EXPORT Image Add ( Image&& image1, const Image& image2 );
152 #endif
153  SITKBasicFilters_EXPORT Image Add ( const Image& image1, const Image& image2 );
154 
156  SITKBasicFilters_EXPORT Image Add ( const Image& image1, double constant );
157 #ifndef SWIG
158  SITKBasicFilters_EXPORT Image Add ( Image&& image1, double constant );
159 #endif
160  SITKBasicFilters_EXPORT Image Add ( double constant, const Image& image2 );
161  }
162 }
163 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:75
itk::simple::AddImageFilter::MemberFunctionType
Image(Self::*)(const Image &image1, const Image &image2) MemberFunctionType
Definition: sitkAddImageFilter.h:119
itk::simple::AddImageFilter::PixelIDTypeList
NonLabelPixelIDTypeList PixelIDTypeList
Definition: sitkAddImageFilter.h:90
sitkBasicFilters.h
itk::simple::AddImageFilter
Pixel-wise addition of two images.
Definition: sitkAddImageFilter.h:78
itk::simple::AddImageFilter::GetName
std::string GetName() const
Definition: sitkAddImageFilter.h:95
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:32
itk::simple::NonLabelPixelIDTypeList
typelist::Append< typelist::Append< BasicPixelIDTypeList, ComplexPixelIDTypeList >::Type, VectorPixelIDTypeList >::Type NonLabelPixelIDTypeList
Definition: sitkPixelIDTypeLists.h:180
itk::simple::AddImageFilter::MemberFunction2Type
Image(Self::*)(const Image &image1, double constant) MemberFunction2Type
Definition: sitkAddImageFilter.h:131
sitkImageFilter.h
itk::simple::Add
Image Add(Image &&image1, const Image &image2)
Pixel-wise addition of two images.
itk::simple::AddImageFilter::m_MemberFactory1
std::unique_ptr< detail::MemberFunctionFactory< MemberFunction1Type > > m_MemberFactory1
Definition: sitkAddImageFilter.h:129
itk::simple::AddImageFilter::m_MemberFactory2
std::unique_ptr< detail::MemberFunctionFactory< MemberFunction2Type > > m_MemberFactory2
Definition: sitkAddImageFilter.h:134
itk::simple::AddImageFilter::m_MemberFactory
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkAddImageFilter.h:125
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
itk
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:36
itk::Image
Definition: sitkPixelIDTypes.h:26
itk::simple::AddImageFilter::MemberFunction1Type
Image(Self::*)(double constant, const Image &image2) MemberFunction1Type
Definition: sitkAddImageFilter.h:126