SimpleITK  
sitkPasteImageFilter.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 sitkPasteImageFilter_h
19#define sitkPasteImageFilter_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
32namespace itk::simple
33{
34
56{
57public:
59
62
66
69
70
73 void
74 SetSourceSize(std::vector<unsigned int> SourceSize)
75 {
76 this->m_SourceSize = std::move(SourceSize);
77 }
78
81 std::vector<unsigned int>
83 {
84 return this->m_SourceSize;
85 }
86
89 void
90 SetSourceIndex(std::vector<int> SourceIndex)
91 {
92 this->m_SourceIndex = std::move(SourceIndex);
93 }
94
97 std::vector<int>
99 {
100 return this->m_SourceIndex;
101 }
102
106 void
107 SetDestinationIndex(std::vector<int> DestinationIndex)
108 {
109 this->m_DestinationIndex = std::move(DestinationIndex);
110 }
111
115 std::vector<int>
117 {
118 return this->m_DestinationIndex;
119 }
120
121
130 void
131 SetDestinationSkipAxes(std::vector<bool> DestinationSkipAxes)
132 {
133 this->m_DestinationSkipAxes = std::move(DestinationSkipAxes);
134 }
135
144 std::vector<bool>
146 {
147 return this->m_DestinationSkipAxes;
148 }
149
150
152 std::string
153 GetName() const
154 {
155 return std::string("PasteImageFilter");
156 }
157
159 std::string
160 ToString() const;
161
162
164#ifndef SWIG
165 Image
166 Execute(Image && destinationImage, const Image & sourceImage);
167 Image
168 Execute(Image && destinationImage, double constant);
169#endif
170 Image
171 Execute(const Image & destinationImage, const Image & sourceImage);
172 Image
173 Execute(const Image & destinationImage, double constant);
174
175
176private:
178
179 using MemberFunctionType = Image (Self::*)(const Image * destinationImage, const Image * sourceImage);
180 template <class TImageType>
181 Image
182 ExecuteInternal(const Image * destinationImage, const Image * sourceImage);
183
184 template <class TImageType, unsigned int OutputDimension>
185 Image
186 ExecuteInternal(const TImageType * destinationImage,
187 const Image * sourceImage,
188 std::integral_constant<unsigned int, OutputDimension> meta);
189 template <class TImageType>
190 Image
191 ExecuteInternal(const TImageType * destinationImage,
192 const Image * sourceImage,
193 std::integral_constant<unsigned int, 1> meta);
194 template <class TImageType>
195 Image
196 ExecuteInternal(const Image * image, double constant);
197
198
200
201 using MemberFunction2Type = Image (Self::*)(const Image * image, double constant);
202
203
205
210
211
212 std::vector<unsigned int> m_SourceSize{ std::vector<unsigned int>(SITK_MAX_DIMENSION, 1) };
213
214 std::vector<int> m_SourceIndex{ std::vector<int>(SITK_MAX_DIMENSION, 0) };
215
216 std::vector<int> m_DestinationIndex{ std::vector<int>(SITK_MAX_DIMENSION, 0) };
217
218 std::vector<bool> m_DestinationSkipAxes{};
219
220 bool m_InPlace{ false };
221};
222
232#ifndef SWIG
234Paste(Image && destinationImage,
235 const Image & sourceImage,
236 std::vector<unsigned int> sourceSize = std::vector<unsigned int>(SITK_MAX_DIMENSION, 1),
237 std::vector<int> sourceIndex = std::vector<int>(SITK_MAX_DIMENSION, 0),
238 std::vector<int> destinationIndex = std::vector<int>(SITK_MAX_DIMENSION, 0),
239 std::vector<bool> DestinationSkipAxes = std::vector<bool>());
240#endif
242Paste(const Image & destinationImage,
243 const Image & sourceImage,
244 std::vector<unsigned int> sourceSize = std::vector<unsigned int>(SITK_MAX_DIMENSION, 1),
245 std::vector<int> sourceIndex = std::vector<int>(SITK_MAX_DIMENSION, 0),
246 std::vector<int> destinationIndex = std::vector<int>(SITK_MAX_DIMENSION, 0),
247 std::vector<bool> DestinationSkipAxes = std::vector<bool>());
248
250} // namespace itk::simple
251#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
Image ExecuteInternal(const TImageType *destinationImage, const Image *sourceImage, std::integral_constant< unsigned int, 1 > meta)
NonLabelPixelIDTypeList PixelIDTypeList
static const detail::MemberFunctionFactory< MemberFunction2Type > & GetMemberFunctionFactory2()
std::vector< int > GetDestinationIndex() const
std::vector< unsigned int > GetSourceSize() const
void SetSourceSize(std::vector< unsigned int > SourceSize)
Image Execute(Image &&destinationImage, double constant)
std::string ToString() const
std::vector< bool > GetDestinationSkipAxes() const
void SetDestinationIndex(std::vector< int > DestinationIndex)
std::vector< bool > m_DestinationSkipAxes
Image(Self::*)(const Image *destinationImage, const Image *sourceImage) MemberFunctionType
Image Execute(const Image &destinationImage, double constant)
Image Execute(const Image &destinationImage, const Image &sourceImage)
Image Execute(Image &&destinationImage, const Image &sourceImage)
std::vector< int > GetSourceIndex() const
void SetSourceIndex(std::vector< int > SourceIndex)
void SetDestinationSkipAxes(std::vector< bool > DestinationSkipAxes)
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
Image(Self::*)(const Image *image, double constant) MemberFunction2Type
std::vector< unsigned int > m_SourceSize
Image ExecuteInternal(const TImageType *destinationImage, const Image *sourceImage, std::integral_constant< unsigned int, OutputDimension > meta)
Image ExecuteInternal(const Image *destinationImage, const Image *sourceImage)
A class used to instantiate and generate function object to templated member functions.
Image Paste(Image &&destinationImage, const Image &sourceImage, std::vector< unsigned int > sourceSize=std::vector< unsigned int >(SITK_MAX_DIMENSION, 1), std::vector< int > sourceIndex=std::vector< int >(SITK_MAX_DIMENSION, 0), std::vector< int > destinationIndex=std::vector< int >(SITK_MAX_DIMENSION, 0), std::vector< bool > DestinationSkipAxes=std::vector< bool >())
Paste an image into another image.
typelist2::append< BasicPixelIDTypeList, ComplexPixelIDTypeList, VectorPixelIDTypeList >::type NonLabelPixelIDTypeList
#define SITKBasicFilters_EXPORT
#define SITK_MAX_DIMENSION