SimpleITK  1.2.4
sitkBSplineTransformInitializerFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 *
3 * Copyright Insight Software Consortium
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"
31 #include "sitkBSplineTransform.h"
32 
33 namespace itk {
34  namespace simple {
35 
49  public:
51 
55 
58 
61 
62 
66  SITK_RETURN_SELF_TYPE_HEADER SetTransformDomainMeshSize ( const std::vector<uint32_t> & TransformDomainMeshSize ) { this->m_TransformDomainMeshSize = TransformDomainMeshSize; return *this; }
67 
70  std::vector<uint32_t> GetTransformDomainMeshSize() const { return this->m_TransformDomainMeshSize; }
71 
76  SITK_RETURN_SELF_TYPE_HEADER SetOrder(unsigned int order) { this->m_Order = order; return *this; }
77  unsigned int GetOrder() const {return this->m_Order;}
78 
80  std::string GetName() const { return std::string ("BSplineTransformInitializerFilter"); }
81 
83  std::string ToString() const;
84 
85 
87  BSplineTransform Execute ( const Image& image1 );
88 
89 
91  BSplineTransform Execute ( const Image& image1, const std::vector<uint32_t> & transformDomainMeshSize, unsigned int order );
92 
93 
94  private:
95 
98  typedef BSplineTransform (Self::*MemberFunctionType)( const Image& image1 );
99  template <class TImageType> BSplineTransform ExecuteInternal ( const Image& image1 );
100  template <unsigned int NDimension,unsigned int NOrder>
101  BSplineTransform ExecuteInternalWithOrder ( const Image& image1 );
102 
103 
104  friend struct detail::MemberFunctionAddressor<MemberFunctionType>;
105 
106  nsstd::auto_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
107 
108 
109  std::vector<uint32_t> m_TransformDomainMeshSize;
110  unsigned int m_Order;
111  };
112 
113 
129  const std::vector<uint32_t> & transformDomainMeshSize = std::vector<uint32_t>(3, 1u),
130  unsigned int order=3u );
131 
132  }
133 }
134 #endif
BSplineTransformInitializerFilter is a helper class intended to initialize the control point grid suc...
#define SITKBasicFilters_EXPORT
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...
typelist::Append< typelist::Append< BasicPixelIDTypeList, ComplexPixelIDTypeList >::Type, typelist::Append< VectorPixelIDTypeList, LabelPixelIDTypeList >::Type >::Type AllPixelIDTypeList
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
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:78
Base class for SimpleITK classes based on ProcessObject.
Self & SetTransformDomainMeshSize(const std::vector< uint32_t > &TransformDomainMeshSize)