SimpleITK  1.2.4
sitkLandmarkBasedTransformInitializerFilter.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 sitkLandmarkBasedTransformInitializerFilter_h
19 #define sitkLandmarkBasedTransformInitializerFilter_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 {
33  namespace simple {
34 
76  public:
78 
81 
82 
86 
88  typedef typelist::MakeTypeList<BasicPixelID<float> >::Type PixelIDTypeList;
89 
90 
94  SITK_RETURN_SELF_TYPE_HEADER SetFixedLandmarks ( const std::vector<double> & FixedLandmarks ) { this->m_FixedLandmarks = FixedLandmarks; return *this; }
95 
99  std::vector<double> GetFixedLandmarks() const { return this->m_FixedLandmarks; }
100 
104  SITK_RETURN_SELF_TYPE_HEADER SetMovingLandmarks ( const std::vector<double> & MovingLandmarks ) { this->m_MovingLandmarks = MovingLandmarks; return *this; }
105 
109  std::vector<double> GetMovingLandmarks() const { return this->m_MovingLandmarks; }
110 
114  SITK_RETURN_SELF_TYPE_HEADER SetLandmarkWeight ( const std::vector<double> & LandmarkWeight ) { this->m_LandmarkWeight = LandmarkWeight; return *this; }
115 
119  std::vector<double> GetLandmarkWeight() const { return this->m_LandmarkWeight; }
120 
124  SITK_RETURN_SELF_TYPE_HEADER SetReferenceImage ( const Image & ReferenceImage ) { this->m_ReferenceImage = ReferenceImage; return *this; }
125 
128  Image GetReferenceImage() const { return this->m_ReferenceImage; }
129 
133  SITK_RETURN_SELF_TYPE_HEADER SetBSplineNumberOfControlPoints ( unsigned int BSplineNumberOfControlPoints ) { this->m_BSplineNumberOfControlPoints = BSplineNumberOfControlPoints; return *this; }
134 
138  unsigned int GetBSplineNumberOfControlPoints() const { return this->m_BSplineNumberOfControlPoints; }
140  std::string GetName() const { return std::string ("LandmarkBasedTransformInitializerFilter"); }
141 
143  std::string ToString() const;
144 
145 
147  Transform Execute ( const Transform & transform );
148 
149 
151  Transform Execute ( const Transform & transform,
152  const std::vector<double> & fixedLandmarks,
153  const std::vector<double> & movingLandmarks,
154  const std::vector<double> & landmarkWeight,
155  const Image & referenceImage,
156  unsigned int numberOfControlPoints );
157 
158 
159  private:
160 
163  typedef Transform (Self::*MemberFunctionType)( const Transform * transform );
164  template <class TImageType> Transform ExecuteInternal ( const Transform * transform );
165 
166 
167  friend struct detail::MemberFunctionAddressor<MemberFunctionType>;
168 
169  nsstd::auto_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
170 
171 
172  /* */
173  std::vector<double> m_FixedLandmarks;
174  /* */
175  std::vector<double> m_MovingLandmarks;
176  /* */
177  std::vector<double> m_LandmarkWeight;
178 
181  };
182 
183 
193  const std::vector<double> & fixedLandmarks = std::vector<double>(),
194  const std::vector<double> & movingLandmarks = std::vector<double>(),
195  const std::vector<double> & landmarkWeight = std::vector<double>(),
196  const Image & referenceImage = Image(),
197  unsigned int numberOfControlPoints = 4u );
198 
199  }
200 }
201 #endif
Self & SetMovingLandmarks(const std::vector< double > &MovingLandmarks)
Self & SetFixedLandmarks(const std::vector< double > &FixedLandmarks)
#define SITKBasicFilters_EXPORT
typelist::MakeTypeList< BasicPixelID< float > >::Type PixelIDTypeList
A simplified wrapper around a variety of ITK transforms.
Definition: sitkTransform.h:84
Self & SetBSplineNumberOfControlPoints(unsigned int BSplineNumberOfControlPoints)
The Image class for SimpleITK.
Definition: sitkImage.h:78
Transform LandmarkBasedTransformInitializer(const Transform &transform, const std::vector< double > &fixedLandmarks=std::vector< double >(), const std::vector< double > &movingLandmarks=std::vector< double >(), const std::vector< double > &landmarkWeight=std::vector< double >(), const Image &referenceImage=Image(), unsigned int numberOfControlPoints=4u)
itk::simple::LandmarkBasedTransformInitializerFilter Procedural Interface
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
The base interface for SimpleITK filters that take one input image.
Self & SetLandmarkWeight(const std::vector< double > &LandmarkWeight)