SimpleITK  2.0.0
sitkLandmarkBasedTransformInitializerFilter.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 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  using PixelIDTypeList = typelist::MakeTypeList<BasicPixelID<float> >::Type;
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 override { return std::string ("LandmarkBasedTransformInitializerFilter"); }
141 
143  std::string ToString() const override;
144 
145 
147  Transform Execute ( const Transform & transform );
148 
149 
150  private:
151 
154  typedef Transform (Self::*MemberFunctionType)( const Transform * transform );
155  template <class TImageType> Transform ExecuteInternal ( const Transform * transform );
156 
157 
158  friend struct detail::MemberFunctionAddressor<MemberFunctionType>;
159 
160  std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
161 
162 
163  /* */
164  std::vector<double> m_FixedLandmarks;
165  /* */
166  std::vector<double> m_MovingLandmarks;
167  /* */
168  std::vector<double> m_LandmarkWeight;
169 
172  };
173 
174 
184  const std::vector<double> & fixedLandmarks = std::vector<double>(),
185  const std::vector<double> & movingLandmarks = std::vector<double>(),
186  const std::vector<double> & landmarkWeight = std::vector<double>(),
187  const Image & referenceImage = Image(),
188  unsigned int numberOfControlPoints = 4u );
189 
190  }
191 }
192 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:75
sitkBasicFilters.h
itk::simple::LandmarkBasedTransformInitializerFilter::m_MemberFactory
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkLandmarkBasedTransformInitializerFilter.h:160
itk::simple::Transform
A simplified wrapper around a variety of ITK transforms.
Definition: sitkTransform.h:80
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:32
itk::simple::LandmarkBasedTransformInitializerFilter::m_FixedLandmarks
std::vector< double > m_FixedLandmarks
Definition: sitkLandmarkBasedTransformInitializerFilter.h:164
itk::simple::LandmarkBasedTransformInitializerFilter::GetFixedLandmarks
std::vector< double > GetFixedLandmarks() const
Definition: sitkLandmarkBasedTransformInitializerFilter.h:99
itk::simple::LandmarkBasedTransformInitializerFilter::PixelIDTypeList
typelist::MakeTypeList< BasicPixelID< float > >::Type PixelIDTypeList
Definition: sitkLandmarkBasedTransformInitializerFilter.h:88
itk::simple::LandmarkBasedTransformInitializerFilter::SetMovingLandmarks
Self & SetMovingLandmarks(const std::vector< double > &MovingLandmarks)
Definition: sitkLandmarkBasedTransformInitializerFilter.h:104
itk::simple::LandmarkBasedTransformInitializerFilter::GetLandmarkWeight
std::vector< double > GetLandmarkWeight() const
Definition: sitkLandmarkBasedTransformInitializerFilter.h:119
sitkImageFilter.h
itk::simple::LandmarkBasedTransformInitializerFilter::GetName
std::string GetName() const override
Definition: sitkLandmarkBasedTransformInitializerFilter.h:140
itk::simple::LandmarkBasedTransformInitializer
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
itk::simple::LandmarkBasedTransformInitializerFilter::m_BSplineNumberOfControlPoints
unsigned int m_BSplineNumberOfControlPoints
Definition: sitkLandmarkBasedTransformInitializerFilter.h:171
itk::simple::LandmarkBasedTransformInitializerFilter::GetBSplineNumberOfControlPoints
unsigned int GetBSplineNumberOfControlPoints() const
Definition: sitkLandmarkBasedTransformInitializerFilter.h:138
itk::simple::LandmarkBasedTransformInitializerFilter::SetBSplineNumberOfControlPoints
Self & SetBSplineNumberOfControlPoints(unsigned int BSplineNumberOfControlPoints)
Definition: sitkLandmarkBasedTransformInitializerFilter.h:133
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
itk::simple::LandmarkBasedTransformInitializerFilter::SetFixedLandmarks
Self & SetFixedLandmarks(const std::vector< double > &FixedLandmarks)
Definition: sitkLandmarkBasedTransformInitializerFilter.h:94
itk
itk::simple::LandmarkBasedTransformInitializerFilter::SetReferenceImage
Self & SetReferenceImage(const Image &ReferenceImage)
Definition: sitkLandmarkBasedTransformInitializerFilter.h:124
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:36
itk::simple::LandmarkBasedTransformInitializerFilter::m_LandmarkWeight
std::vector< double > m_LandmarkWeight
Definition: sitkLandmarkBasedTransformInitializerFilter.h:168
itk::simple::LandmarkBasedTransformInitializerFilter::SetLandmarkWeight
Self & SetLandmarkWeight(const std::vector< double > &LandmarkWeight)
Definition: sitkLandmarkBasedTransformInitializerFilter.h:114
itk::simple::LandmarkBasedTransformInitializerFilter::m_MovingLandmarks
std::vector< double > m_MovingLandmarks
Definition: sitkLandmarkBasedTransformInitializerFilter.h:166
itk::simple::LandmarkBasedTransformInitializerFilter::m_ReferenceImage
Image m_ReferenceImage
Definition: sitkLandmarkBasedTransformInitializerFilter.h:170
itk::simple::LandmarkBasedTransformInitializerFilter
Definition: sitkLandmarkBasedTransformInitializerFilter.h:75
itk::simple::LandmarkBasedTransformInitializerFilter::GetMovingLandmarks
std::vector< double > GetMovingLandmarks() const
Definition: sitkLandmarkBasedTransformInitializerFilter.h:109
itk::simple::LandmarkBasedTransformInitializerFilter::GetReferenceImage
Image GetReferenceImage() const
Definition: sitkLandmarkBasedTransformInitializerFilter.h:128