SimpleITK  
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.jinja to make changes.
25 */
26
27#include <memory>
28
29#include "sitkBasicFilters.h"
30#include "sitkImageFilter.h"
32
33namespace itk::simple {
34
83public:
85
87 virtual ~AddImageFilter();
88
92
95
96
97
98
100 std::string GetName() const { return std::string("AddImageFilter"); }
101
103 std::string ToString() const;
104
105
107#ifndef SWIG
108 Image Execute(Image&& image1, const Image &image2);
109#endif
110 Image Execute(const Image &image1, const Image &image2);
111
112
114 Image Execute(const Image& image1, double constant);
115#ifndef SWIG
116 Image Execute(Image&& image1, double constant);
117#endif
118 Image Execute(double constant, const Image& image2);
119
120
121
122
123
124
125private:
127 using MemberFunctionType = Image (Self::*)(const Image &image1, const Image &image2);
128 template <class TImageType> Image ExecuteInternal(const Image &image1, const Image &image2);
129
130 using MemberFunction1Type = Image (Self::*)(double constant, const Image& image2);
131 template <class TImageType> Image ExecuteInternal(double constant, const Image& image2);
134
135 using MemberFunction2Type = Image (Self::*)(const Image& image1, double constant);
136 template <class TImageType> Image ExecuteInternal(const Image& image1, double constant);
139
142
143
144
145
146
147
148
149
150 bool m_InPlace{false};
151
152};
153
154
163#ifndef SWIG
165 Image&& image1, const Image &image2
166);
167
168
169#endif
171 const Image &image1, const Image &image2
172);
173
176 const Image& image1, double constant
177);
178#ifndef SWIG
180 Image&& image1, double constant
181);
182#endif
184 double constant, const Image& image2
185);
186}
187#endif
Image ExecuteInternal(const Image &image1, const Image &image2)
Image Execute(double constant, const Image &image2)
static const detail::MemberFunctionFactory< MemberFunction1Type > & GetMemberFunctionFactory1()
Image(Self::*)(const Image &image1, double constant) MemberFunction2Type
static const detail::MemberFunctionFactory< MemberFunction2Type > & GetMemberFunctionFactory2()
Image(Self::*)(double constant, const Image &image2) MemberFunction1Type
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
NonLabelPixelIDTypeList PixelIDTypeList
Image Execute(const Image &image1, double constant)
Image Execute(Image &&image1, const Image &image2)
Image(Self::*)(const Image &image1, const Image &image2) MemberFunctionType
std::string ToString() const
Image Execute(Image &&image1, double constant)
Image Execute(const Image &image1, const Image &image2)
The Image class for SimpleITK.
Definition sitkImage.h:77
A class used to instantiate and generate function object to templated member functions.
typelist2::append< BasicPixelIDTypeList, ComplexPixelIDTypeList, VectorPixelIDTypeList >::type NonLabelPixelIDTypeList
Image Add(Image &&image1, const Image &image2)
Pixel-wise addition of two images.
#define SITKBasicFilters_EXPORT