SimpleITK  
sitkMaskedAssignImageFilter.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 sitkMaskedAssignImageFilter_h
19 #define sitkMaskedAssignImageFilter_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 sitkImageFilterTemplate.h.in to make changes.
25  */
26 
27 #include <memory>
28 
29 #include "sitkBasicFilters.h"
30 #include "sitkImageFilter.h"
31 
32 namespace itk::simple {
33 
65  public:
67 
69  virtual ~MaskedAssignImageFilter();
70 
74 
77 \
78 
82  SITK_RETURN_SELF_TYPE_HEADER SetAssignConstant ( double AssignConstant ) { this->m_AssignConstant = AssignConstant; return *this; }
83 
86  double GetAssignConstant() const { return this->m_AssignConstant; }
87 
89  std::string GetName() const { return std::string ("MaskedAssignImageFilter"); }
90 
92  std::string ToString() const;
93 
94 
96 #ifndef SWIG
97  Image Execute ( Image && image, const Image & maskImage, const Image & assignImage );
98  Image Execute ( Image && image, const Image & maskImage );
99 #endif
100  Image Execute ( const Image & image, const Image & maskImage, const Image & assignImage );
101  Image Execute ( const Image & image, const Image & maskImage );
102 
103  private:
104 
107  using MemberFunctionType = Image (Self::*)( const Image * image, const Image * maskImage, const Image * assignImage );
108  template <class TImageType> Image ExecuteInternal ( const Image * image, const Image * maskImage, const Image * assignImage );
109 
110 
112 
113  std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
114 
115 
116  double m_AssignConstant{0};
117 
118 
119  bool m_InPlace{false};
120  };
121 
131 #ifndef SWIG
132  SITKBasicFilters_EXPORT Image MaskedAssign ( Image && image, const Image & maskImage, const Image & assignImage, double assignConstant = 0 );
133  SITKBasicFilters_EXPORT Image MaskedAssign ( Image && image, const Image & maskImage, double assignConstant = 0 );
134 #endif
135  SITKBasicFilters_EXPORT Image MaskedAssign ( const Image & image, const Image & maskImage, const Image & assignImage, double assignConstant = 0 );
136  SITKBasicFilters_EXPORT Image MaskedAssign ( const Image & image, const Image & maskImage, double assignConstant = 0 );
138 }
139 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:76
sitkBasicFilters.h
itk::simple::MaskedAssignImageFilter
Mask an image with a mask.
Definition: sitkMaskedAssignImageFilter.h:64
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:28
itk::simple::MaskedAssignImageFilter::SetAssignConstant
Self & SetAssignConstant(double AssignConstant)
Definition: sitkMaskedAssignImageFilter.h:82
sitkImageFilter.h
itk::simple::MaskedAssignImageFilter::m_MemberFactory
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkMaskedAssignImageFilter.h:113
itk::simple::MaskedAssignImageFilter::MemberFunctionType
Image(Self::*)(const Image *image, const Image *maskImage, const Image *assignImage) MemberFunctionType
Definition: sitkMaskedAssignImageFilter.h:107
itk::simple::MaskedAssignImageFilter::GetAssignConstant
double GetAssignConstant() const
Definition: sitkMaskedAssignImageFilter.h:86
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
itk::simple::NonLabelPixelIDTypeList
typelist2::append< BasicPixelIDTypeList, ComplexPixelIDTypeList, VectorPixelIDTypeList >::type NonLabelPixelIDTypeList
Definition: sitkPixelIDTypeLists.h:180
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:34
itk::simple::MaskedAssign
Image MaskedAssign(Image &&image, const Image &maskImage, const Image &assignImage, double assignConstant=0)
Mask an image with a mask.
itk::simple::MaskedAssignImageFilter::GetName
std::string GetName() const
Definition: sitkMaskedAssignImageFilter.h:89
itk::Image
Definition: sitkPixelIDTypes.h:26
itk::simple
Definition: sitkAdditionalProcedures.h:28
itk::simple::MaskedAssignImageFilter::PixelIDTypeList
NonLabelPixelIDTypeList PixelIDTypeList
Definition: sitkMaskedAssignImageFilter.h:76