SimpleITK  2.0.0
sitkSubtractImageFilter.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 sitkSubtractImageFilter_h
19 #define sitkSubtractImageFilter_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 
73  public:
75 
77  virtual ~SubtractImageFilter();
78 
82 
85 
86 
87 
89  std::string GetName() const { return std::string ("SubtractImageFilter"); }
90 
92  std::string ToString() const;
93 
94 
96 #ifndef SWIG
97  Image Execute ( Image&& image1, const Image& image2 );
98 #endif
99  Image Execute ( const Image& image1, const Image& image2 );
100 
102  Image Execute ( const Image& image1, double constant );
103 #ifndef SWIG
104  Image Execute ( Image&& image1, double constant );
105 #endif
106  Image Execute ( double constant, const Image& image2 );
107 
108 
109  private:
110 
113  using MemberFunctionType = Image (Self::*)( const Image& image1, const Image& image2 );
114  template <class TImageType> Image ExecuteInternal ( const Image& image1, const Image& image2 );
115 
116 
118 
119  std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
120  using MemberFunction1Type = Image (Self::*)( double constant, const Image& image2 );
121  template <class TImageType> Image ExecuteInternal ( double constant, const Image& image2 );
123  std::unique_ptr<detail::MemberFunctionFactory<MemberFunction1Type> > m_MemberFactory1;
124 
125  using MemberFunction2Type = Image (Self::*)( const Image& image1, double constant );
126  template <class TImageType> Image ExecuteInternal ( const Image& image1, double constant );
128  std::unique_ptr<detail::MemberFunctionFactory<MemberFunction2Type> > m_MemberFactory2;
129 
130 
131 
132  bool m_InPlace{false};
133  };
134 
144 #ifndef SWIG
145  SITKBasicFilters_EXPORT Image Subtract ( Image&& image1, const Image& image2 );
146 #endif
147  SITKBasicFilters_EXPORT Image Subtract ( const Image& image1, const Image& image2 );
148 
150  SITKBasicFilters_EXPORT Image Subtract ( const Image& image1, double constant );
151 #ifndef SWIG
152  SITKBasicFilters_EXPORT Image Subtract ( Image&& image1, double constant );
153 #endif
154  SITKBasicFilters_EXPORT Image Subtract ( double constant, const Image& image2 );
155  }
156 }
157 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:75
sitkBasicFilters.h
itk::simple::SubtractImageFilter::MemberFunctionType
Image(Self::*)(const Image &image1, const Image &image2) MemberFunctionType
Definition: sitkSubtractImageFilter.h:113
itk::simple::SubtractImageFilter::MemberFunction1Type
Image(Self::*)(double constant, const Image &image2) MemberFunction1Type
Definition: sitkSubtractImageFilter.h:120
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:32
itk::simple::Subtract
Image Subtract(Image &&image1, const Image &image2)
Pixel-wise subtraction of two images.
itk::simple::NonLabelPixelIDTypeList
typelist::Append< typelist::Append< BasicPixelIDTypeList, ComplexPixelIDTypeList >::Type, VectorPixelIDTypeList >::Type NonLabelPixelIDTypeList
Definition: sitkPixelIDTypeLists.h:180
itk::simple::SubtractImageFilter::m_MemberFactory2
std::unique_ptr< detail::MemberFunctionFactory< MemberFunction2Type > > m_MemberFactory2
Definition: sitkSubtractImageFilter.h:128
itk::simple::SubtractImageFilter::GetName
std::string GetName() const
Definition: sitkSubtractImageFilter.h:89
sitkImageFilter.h
itk::simple::SubtractImageFilter::m_MemberFactory
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkSubtractImageFilter.h:119
itk::simple::SubtractImageFilter::MemberFunction2Type
Image(Self::*)(const Image &image1, double constant) MemberFunction2Type
Definition: sitkSubtractImageFilter.h:125
itk::simple::SubtractImageFilter
Pixel-wise subtraction of two images.
Definition: sitkSubtractImageFilter.h:72
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
itk::simple::SubtractImageFilter::m_MemberFactory1
std::unique_ptr< detail::MemberFunctionFactory< MemberFunction1Type > > m_MemberFactory1
Definition: sitkSubtractImageFilter.h:123
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::SubtractImageFilter::PixelIDTypeList
NonLabelPixelIDTypeList PixelIDTypeList
Definition: sitkSubtractImageFilter.h:84