ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkPointSetToPointSetRegistrationMethod.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 __itkPointSetToPointSetRegistrationMethod_h
19 #define __itkPointSetToPointSetRegistrationMethod_h
20 
21 #include "itkProcessObject.h"
24 #include "itkDataObjectDecorator.h"
25 
26 namespace itk
27 {
62 template< typename TFixedPointSet, typename TMovingPointSet >
64 {
65 public:
71 
73  itkNewMacro(Self);
74 
77 
79  typedef TFixedPointSet FixedPointSetType;
80  typedef typename FixedPointSetType::ConstPointer FixedPointSetConstPointer;
81 
83  typedef TMovingPointSet MovingPointSetType;
84  typedef typename MovingPointSetType::ConstPointer MovingPointSetConstPointer;
85 
89 
93 
99 
102 
106 
109 
111  void StartRegistration(void);
112 
114  itkSetConstObjectMacro(FixedPointSet, FixedPointSetType);
115  itkGetConstObjectMacro(FixedPointSet, FixedPointSetType);
117 
119  itkSetConstObjectMacro(MovingPointSet, MovingPointSetType);
120  itkGetConstObjectMacro(MovingPointSet, MovingPointSetType);
122 
124  itkSetObjectMacro(Optimizer, OptimizerType);
125  itkGetObjectMacro(Optimizer, OptimizerType);
127 
129  itkSetObjectMacro(Metric, MetricType);
130  itkGetObjectMacro(Metric, MetricType);
132 
134  itkSetObjectMacro(Transform, TransformType);
135  itkGetObjectMacro(Transform, TransformType);
137 
139  virtual void SetInitialTransformParameters(const ParametersType & param);
140 
141  itkGetConstReferenceMacro(InitialTransformParameters, ParametersType);
142 
145  itkGetConstReferenceMacro(LastTransformParameters, ParametersType);
146 
148  void Initialize()
149  throw ( ExceptionObject );
150 
152  const TransformOutputType * GetOutput() const;
153 
157  using Superclass::MakeOutput;
158  virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx);
159 
162  unsigned long GetMTime() const;
163 
164 protected:
166  virtual ~PointSetToPointSetRegistrationMethod() {}
167  void PrintSelf(std::ostream & os, Indent indent) const;
168 
171  void GenerateData();
172 
173 private:
174  PointSetToPointSetRegistrationMethod(const Self &); //purposely not
175  // implemented
176  void operator=(const Self &); //purposely not
177 
178  // implemented
179 
182 
185 
187 
190 };
191 } // end namespace itk
192 
193 #ifndef ITK_MANUAL_INSTANTIATION
194 #include "itkPointSetToPointSetRegistrationMethod.hxx"
195 #endif
196 
197 #endif
198