ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkPointSetToImageRegistrationMethod.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 __itkPointSetToImageRegistrationMethod_h
19 #define __itkPointSetToImageRegistrationMethod_h
20 
21 #include "itkProcessObject.h"
22 #include "itkImage.h"
25 #include "itkDataObjectDecorator.h"
26 
27 namespace itk
28 {
63 template< typename TFixedPointSet, typename TMovingImage >
65 {
66 public:
72 
74  itkNewMacro(Self);
75 
78 
80  typedef TFixedPointSet FixedPointSetType;
81  typedef typename FixedPointSetType::ConstPointer FixedPointSetConstPointer;
82 
84  typedef TMovingImage MovingImageType;
85  typedef typename MovingImageType::ConstPointer MovingImageConstPointer;
86 
90 
94 
100 
104 
107 
111 
114 
116  void StartRegistration(void);
117 
119  itkSetConstObjectMacro(FixedPointSet, FixedPointSetType);
120  itkGetConstObjectMacro(FixedPointSet, FixedPointSetType);
122 
124  itkSetConstObjectMacro(MovingImage, MovingImageType);
125  itkGetConstObjectMacro(MovingImage, MovingImageType);
127 
129  itkSetObjectMacro(Optimizer, OptimizerType);
130  itkGetObjectMacro(Optimizer, OptimizerType);
132 
134  itkSetObjectMacro(Metric, MetricType);
135  itkGetObjectMacro(Metric, MetricType);
137 
139  itkSetObjectMacro(Transform, TransformType);
140  itkGetObjectMacro(Transform, TransformType);
142 
144  itkSetObjectMacro(Interpolator, InterpolatorType);
145  itkGetObjectMacro(Interpolator, InterpolatorType);
147 
149  virtual void SetInitialTransformParameters(const ParametersType & param);
150 
151  itkGetConstReferenceMacro(InitialTransformParameters, ParametersType);
152 
155  itkGetConstReferenceMacro(LastTransformParameters, ParametersType);
156 
158  void Initialize()
159  throw ( ExceptionObject );
160 
162  const TransformOutputType * GetOutput() const;
163 
167  using Superclass::MakeOutput;
168  virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx);
169 
172  unsigned long GetMTime() const;
173 
174 protected:
176  virtual ~PointSetToImageRegistrationMethod() {}
177  void PrintSelf(std::ostream & os, Indent indent) const;
178 
181  void GenerateData();
182 
183 private:
184  PointSetToImageRegistrationMethod(const Self &); //purposely not implemented
185  void operator=(const Self &); //purposely not implemented
186 
189 
192 
195 
198 };
199 } // end namespace itk
200 
201 #ifndef ITK_MANUAL_INSTANTIATION
202 #include "itkPointSetToImageRegistrationMethod.hxx"
203 #endif
204 
205 #endif
206