SimpleITK  
sitkCenteredTransformInitializerFilter.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 sitkCenteredTransformInitializerFilter_h
19 #define sitkCenteredTransformInitializerFilter_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 "sitkProcessObject.h"
32 
33 namespace itk::simple
34 {
35 
68 {
69 public:
71 
74 
78 
81 
82  typedef enum
83  {
85  MOMENTS
86  } OperationModeType;
87 
90  SITK_RETURN_SELF_TYPE_HEADER
92  {
93  this->m_OperationMode = OperationMode;
94  return *this;
95  }
96 
99  OperationModeType
101  {
102  return this->m_OperationMode;
103  }
105  std::string
106  GetName() const override
107  {
108  return std::string("CenteredTransformInitializerFilter");
109  }
110 
112  std::string
113  ToString() const override;
114 
115 
117  Transform
118  Execute(const Image & fixedImage, const Image & movingImage, const Transform & transform);
119 
122  SITK_RETURN_SELF_TYPE_HEADER
124  {
125  this->SetOperationMode(MOMENTS);
126  return *this;
127  }
128 
131  SITK_RETURN_SELF_TYPE_HEADER
133  {
134  this->SetOperationMode(GEOMETRY);
135  return *this;
136  }
137 
138 
139 private:
142  typedef Transform (Self::*MemberFunctionType)(const Image * fixedImage,
143  const Image * movingImage,
144  const itk::simple::Transform * transform);
145  template <class TImageType>
146  Transform
147  ExecuteInternal(const Image * fixedImage, const Image * movingImage, const itk::simple::Transform * transform);
148 
149 
150  friend struct detail::MemberFunctionAddressor<MemberFunctionType>;
151 
152  std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType>> m_MemberFactory;
153 
154 
156 };
157 
168 CenteredTransformInitializer(const Image & fixedImage,
169  const Image & movingImage,
170  const Transform & transform,
173 
174 } // namespace itk::simple
175 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:76
sitkBasicFilters.h
itk::simple::CenteredTransformInitializerFilter::GetOperationMode
OperationModeType GetOperationMode() const
Definition: sitkCenteredTransformInitializerFilter.h:100
itk::simple::Transform
A simplified wrapper around a variety of ITK transforms.
Definition: sitkTransform.h:86
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:29
itk::simple::CenteredTransformInitializerFilter
CenteredTransformInitializerFilter is a helper class intended to initialize the center of rotation an...
Definition: sitkCenteredTransformInitializerFilter.h:67
itk::simple::CenteredTransformInitializerFilter::OperationModeType
OperationModeType
Definition: sitkCenteredTransformInitializerFilter.h:82
itk::simple::BasicPixelIDTypeList
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > > BasicPixelIDTypeList
Definition: sitkPixelIDTypeLists.h:51
itk::simple::CenteredTransformInitializerFilter::SetOperationMode
Self & SetOperationMode(OperationModeType OperationMode)
Definition: sitkCenteredTransformInitializerFilter.h:91
sitkMemberFunctionFactory.h
itk::simple::CenteredTransformInitializerFilter::GEOMETRY
@ GEOMETRY
Definition: sitkCenteredTransformInitializerFilter.h:84
sitkProcessObject.h
itk::simple::CenteredTransformInitializerFilter::PixelIDTypeList
BasicPixelIDTypeList PixelIDTypeList
Definition: sitkCenteredTransformInitializerFilter.h:80
itk::simple::CenteredTransformInitializerFilter::GetName
std::string GetName() const override
Definition: sitkCenteredTransformInitializerFilter.h:106
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
itk::simple::CenteredTransformInitializerFilter::MOMENTS
@ MOMENTS
Definition: sitkCenteredTransformInitializerFilter.h:85
itk::simple::CenteredTransformInitializerFilter::m_MemberFactory
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkCenteredTransformInitializerFilter.h:152
itk::simple::CenteredTransformInitializerFilter::GeometryOn
Self & GeometryOn()
Definition: sitkCenteredTransformInitializerFilter.h:132
itk::simple::CenteredTransformInitializerFilter::m_OperationMode
OperationModeType m_OperationMode
Definition: sitkCenteredTransformInitializerFilter.h:155
itk::simple::ProcessObject
Base class for SimpleITK classes based on ProcessObject.
Definition: sitkProcessObject.h:54
itk::simple
Definition: sitkAdditionalProcedures.h:28
itk::simple::CenteredTransformInitializer
Transform CenteredTransformInitializer(const Image &fixedImage, const Image &movingImage, const Transform &transform, CenteredTransformInitializerFilter::OperationModeType operationMode=itk::simple::CenteredTransformInitializerFilter::MOMENTS)
CenteredTransformInitializer is a helper class intended to initialize the center of rotation and the ...
itk::simple::CenteredTransformInitializerFilter::MomentsOn
Self & MomentsOn()
Definition: sitkCenteredTransformInitializerFilter.h:123