SimpleITK  
sitkBSplineTransformInitializerFilter.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 sitkBSplineTransformInitializerFilter_h
19#define sitkBSplineTransformInitializerFilter_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"
32
33namespace itk::simple
34{
35
49{
50public:
52
56
59
62
63
68 void
69 SetTransformDomainMeshSize(const std::vector<uint32_t> & TransformDomainMeshSize)
70 {
71 this->m_TransformDomainMeshSize = TransformDomainMeshSize;
72 }
73
76 std::vector<uint32_t>
78 {
79 return this->m_TransformDomainMeshSize;
80 }
81
86 void
87 SetOrder(unsigned int order)
88 {
89 this->m_Order = order;
90 }
91 unsigned int
92 GetOrder() const
93 {
94 return this->m_Order;
95 }
96
98 std::string
99 GetName() const override
100 {
101 return std::string("BSplineTransformInitializerFilter");
102 }
103
105 std::string
106 ToString() const override;
107
108
111 Execute(const Image & image1);
112
113private:
115
116 typedef BSplineTransform (Self::*MemberFunctionType)(const Image & image1);
117 template <class TImageType>
119 ExecuteInternal(const Image & image1);
120 template <unsigned int NDimension, unsigned int NOrder>
123
124
126
129
130 std::vector<uint32_t> m_TransformDomainMeshSize{ std::vector<uint32_t>(3, 1u) };
131 unsigned int m_Order{ 3u };
132};
133
134
151 const std::vector<uint32_t> & transformDomainMeshSize = std::vector<uint32_t>(3, 1u),
152 unsigned int order = 3u);
153
154} // namespace itk::simple
155#endif
BSplineTransform ExecuteInternalWithOrder(const Image &image1)
BSplineTransform Execute(const Image &image1)
void SetTransformDomainMeshSize(const std::vector< uint32_t > &TransformDomainMeshSize)
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
BSplineTransform(Self::* MemberFunctionType)(const Image &image1)
BSplineTransform ExecuteInternal(const Image &image1)
A deformable transform over a bounded spatial domain using a BSpline representation for a 2D or 3D co...
The Image class for SimpleITK.
Definition sitkImage.h:77
A class used to instantiate and generate function object to templated member functions.
BSplineTransform BSplineTransformInitializer(const Image &image1, const std::vector< uint32_t > &transformDomainMeshSize=std::vector< uint32_t >(3, 1u), unsigned int order=3u)
BSplineTransformInitializerFilter is a helper class intended to initialize the control point grid suc...
typelist2::append< BasicPixelIDTypeList, ComplexPixelIDTypeList, VectorPixelIDTypeList, LabelPixelIDTypeList >::type AllPixelIDTypeList
#define SITKBasicFilters_EXPORT