SimpleITK  1.0.1
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 
46  public:
48 
52 
55 
58 
59 
60 
64  SITK_RETURN_SELF_TYPE_HEADER SetTransformDomainMeshSize ( const std::vector<uint32_t> & TransformDomainMeshSize ) { this->m_TransformDomainMeshSize = TransformDomainMeshSize; return *this; }
65 
68  std::vector<uint32_t> GetTransformDomainMeshSize() const { return this->m_TransformDomainMeshSize; }
69 
74  SITK_RETURN_SELF_TYPE_HEADER SetOrder(unsigned int order) { this->m_Order = order; return *this; }
75  unsigned int GetOrder() const {return this->m_Order;}
76 
78  std::string GetName() const { return std::string ("BSplineTransformInitializerFilter"); }
79 
81  std::string ToString() const;
82 
83 
85  BSplineTransform Execute ( const Image& image1 );
86 
87 
89  BSplineTransform Execute ( const Image& image1, const std::vector<uint32_t> & transformDomainMeshSize, unsigned int order );
90 
91 
92  private:
93 
96  typedef BSplineTransform (Self::*MemberFunctionType)( const Image& image1 );
97  template <class TImageType> BSplineTransform ExecuteInternal ( const Image& image1 );
98  template <unsigned int NDimension,unsigned int NOrder>
99  BSplineTransform ExecuteInternalWithOrder ( const Image& image1 );
100 
101 
102 
103  friend struct detail::MemberFunctionAddressor<MemberFunctionType>;
104 
105  nsstd::auto_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
106 
107 
108  std::vector<uint32_t> m_TransformDomainMeshSize;
109  unsigned int m_Order;
110  };
111 
112 
113 
122  SITKBasicFilters_EXPORT BSplineTransform BSplineTransformInitializer ( const Image& image1, const std::vector<uint32_t> & transformDomainMeshSize = std::vector<uint32_t>(3, 1u), unsigned int order=3u );
123 
124  }
125 }
126 #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 main Image class for SimpleITK.
Definition: sitkImage.h:54
Base class for SimpleITK classes based on ProcessObject.
Self & SetTransformDomainMeshSize(const std::vector< uint32_t > &TransformDomainMeshSize)